mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-03 01:01:13 -04:00
fix: clean wallet amount on prop change (#54281)
This commit is contained in:
@@ -72,6 +72,11 @@ const WalletsButton = ({
|
||||
checkPaymentPossibility(false);
|
||||
}
|
||||
});
|
||||
|
||||
return () => {
|
||||
setPaymentRequest(null);
|
||||
checkPaymentPossibility(false);
|
||||
};
|
||||
}, [label, amount, stripe, postPayment, handlePaymentButtonLoad]);
|
||||
|
||||
const displayRefreshError = (): void => {
|
||||
|
||||
Reference in New Issue
Block a user