Skip to content

Commit

Permalink
ASUB-7844 Fix issue where identity is not defined in paymentInfo (#1831)
Browse files Browse the repository at this point in the history
fix issue where identity is not defined in paymentInfo
  • Loading branch information
edwardcho1231 authored Dec 5, 2023
1 parent 11af306 commit 32f6095
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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);
Expand Down

0 comments on commit 32f6095

Please sign in to comment.