From 32f609518d62062da03a8682bae8f65bc76f7eed Mon Sep 17 00:00:00 2001 From: edwardcho1231 <67028780+edwardcho1231@users.noreply.github.com> Date: Tue, 5 Dec 2023 13:08:48 -0500 Subject: [PATCH] ASUB-7844 Fix issue where identity is not defined in paymentInfo (#1831) fix issue where identity is not defined in paymentInfo --- .../features/checkout/_children/PaymentInfo/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blocks/subscriptions-block/features/checkout/_children/PaymentInfo/index.jsx b/blocks/subscriptions-block/features/checkout/_children/PaymentInfo/index.jsx index f50d96de4b..0a9a21193a 100644 --- a/blocks/subscriptions-block/features/checkout/_children/PaymentInfo/index.jsx +++ b/blocks/subscriptions-block/features/checkout/_children/PaymentInfo/index.jsx @@ -5,7 +5,7 @@ import useSales from "../../../../components/useSales"; import PayPal from "../../../../components/PayPal"; import { LABEL_ORDER_NUMBER_PAYPAL } from "../../default"; -import { usePhrases, Heading, HeadingSection, Paragraph } from "@wpmedia/arc-themes-components"; +import { usePhrases, Heading, HeadingSection, Paragraph, useIdentity } from "@wpmedia/arc-themes-components"; import PaymentForm from "../../../../components/PaymentForm"; @@ -20,7 +20,8 @@ const PaymentInfo = ({ isInitialized }) => { const { Sales } = useSales(); - window.Sales = Sales; + const { Identity } = useIdentity(); + const [stripeInstance, setStripeInstance] = useState(null); const [isStripeInitialized, setIsStripeInitialized] = useState(false);