From 521fd7f58acd0ab283849c698a05ed90c0d500db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Famibelle-Pronzola?= Date: Sun, 25 Jun 2023 15:43:30 +0400 Subject: [PATCH] Fix error when exiting payment form --- components/soutyen/payment-method.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/soutyen/payment-method.js b/components/soutyen/payment-method.js index e2a888a..4896dc3 100644 --- a/components/soutyen/payment-method.js +++ b/components/soutyen/payment-method.js @@ -69,6 +69,11 @@ export default function PaymentMethod({isLoading, paymentMethod, setPaymentMetho } const handleClose = () => { + if (selectedMontant) { + setSelectedMontant(null) + setValidMontant(null) + } + setOpen(false) }