From 6dd256aac9cdea4273c9f0d079bf8a5792175ba4 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 14 Nov 2023 15:19:43 -0800 Subject: [PATCH] Update packages/commerce-sdk-react/src/components/StorefrontPreview/storefront-preview.tsx Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com> Signed-off-by: Ben Chypak --- .../src/components/StorefrontPreview/storefront-preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/commerce-sdk-react/src/components/StorefrontPreview/storefront-preview.tsx b/packages/commerce-sdk-react/src/components/StorefrontPreview/storefront-preview.tsx index ca3c391f0a..c7425fa411 100644 --- a/packages/commerce-sdk-react/src/components/StorefrontPreview/storefront-preview.tsx +++ b/packages/commerce-sdk-react/src/components/StorefrontPreview/storefront-preview.tsx @@ -74,7 +74,7 @@ StorefrontPreview.propTypes = { // to get to a place where both these props are simply optional and we will provide default implementations. // This would make the API simpler to use. getToken: CustomPropTypes.requiredFunctionWhenEnabled, - onContextChange: CustomPropTypes.requiredFunctionWhenEnabled + onContextChange: PropTypes.func } export default StorefrontPreview