Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix context usage
Browse files Browse the repository at this point in the history
Make sure to consider the context property might not be present
  • Loading branch information
nerrad committed Jun 12, 2023
1 parent 9a3c684 commit 37b4a7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Block = ( {
style={ style }
priceClassName={ priceClassName }
currency={ currency }
withSuperScript={ context[ 'woocommerce/withSuperScriptStyle' ] }
withSuperScript={ context?.[ 'woocommerce/withSuperScriptStyle' ] }
price={
isDescendentOfSingleProductTemplate ? pricePreview : rawPrice
}
Expand Down

0 comments on commit 37b4a7e

Please sign in to comment.