Skip to content

Commit

Permalink
show register form only after successful payment
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMolcik committed Jan 14, 2025
1 parent ffbf208 commit 6ea9385
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions storefront/pages/order-payment-confirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ const OrderPaymentConfirmationPage: FC<ServerSidePropsType> = () => {
paymentStatusData={paymentStatusData}
successContentData={successContentData}
/>
<RegistrationAfterOrder
orderEmail={orderEmail as string | undefined}
orderUrlHash={orderUrlHash as string | undefined}
orderUuid={orderUuid}
/>
{paymentStatusData?.UpdatePaymentStatus.isPaid && successContentData && (
<RegistrationAfterOrder
orderEmail={orderEmail as string | undefined}
orderUrlHash={orderUrlHash as string | undefined}
orderUuid={orderUuid}
/>
)}
</Webline>
</CommonLayout>
</>
Expand Down

0 comments on commit 6ea9385

Please sign in to comment.