fix: clean wallet amount on prop change (#54281)

This commit is contained in:
Ahmad Abdolsaheb
2024-04-04 08:40:30 +03:00
committed by GitHub
parent d3481989a9
commit b0d547e07a

View File

@@ -72,6 +72,11 @@ const WalletsButton = ({
checkPaymentPossibility(false);
}
});
return () => {
setPaymentRequest(null);
checkPaymentPossibility(false);
};
}, [label, amount, stripe, postPayment, handlePaymentButtonLoad]);
const displayRefreshError = (): void => {