Fix error when exiting payment form
This commit is contained in:
@@ -69,6 +69,11 @@ export default function PaymentMethod({isLoading, paymentMethod, setPaymentMetho
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
if (selectedMontant) {
|
||||||
|
setSelectedMontant(null)
|
||||||
|
setValidMontant(null)
|
||||||
|
}
|
||||||
|
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user