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

Commit 494faa3

Browse files
committed
Fix context usage
Make sure to consider the context property might not be present
1 parent 13eb8ca commit 494faa3

File tree

1 file changed

+1
-1
lines changed
  • assets/js/atomic/blocks/product-elements/price-v2/inner-blocks/current-price

1 file changed

+1
-1
lines changed

assets/js/atomic/blocks/product-elements/price-v2/inner-blocks/current-price/block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Block = ( {
4949
style={ style }
5050
priceClassName={ priceClassName }
5151
currency={ currency }
52-
withSuperScript={ context[ 'woocommerce/withSuperScriptStyle' ] }
52+
withSuperScript={ context?.[ 'woocommerce/withSuperScriptStyle' ] }
5353
price={
5454
isDescendentOfSingleProductTemplate ? pricePreview : rawPrice
5555
}

0 commit comments

Comments
 (0)