Skip to content

Commit

Permalink
albert's suggested fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Oct 4, 2023
1 parent 32c534b commit 618c886
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ const Checkout = ({ product, quantity, action }: Props) => {
<Formik
onSubmit={() => {}}
initialValues={initialValues}
enableReinitialize={!!userInfo?.customerInfo?.address?.country}
enableReinitialize={
(!!userInfo?.customerInfo?.address?.country &&
action === "renewal") ||
(!!userInfo?.customerInfo?.defaultPaymentMethod &&
action === "purchase")
}
>
<>
<Col emptyLarge={7} size={6}>
Expand Down

0 comments on commit 618c886

Please sign in to comment.