Skip to content

Commit

Permalink
[fix][sale widget] Fix loading screen for cc warning (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl committed May 16, 2024
1 parent a3e802e commit a76d6ae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export function SaleContextProvider(props: {

const setPaymentMethod = (type: SalePaymentTypes | undefined) => {
if (type === SalePaymentTypes.CREDIT && !showCreditCardWarning) {
setPaymentMethodState(undefined);
setShowCreditCardWarning(true);
return;
}
Expand Down

0 comments on commit a76d6ae

Please sign in to comment.