Обновил проверку закрытия формы ввода карты
This commit is contained in:
parent
aaedc42362
commit
a2a19ffd5b
@ -72,10 +72,10 @@ function TrialPaymentPage() {
|
||||
}, [isPaymentSuccess])
|
||||
|
||||
useEffect(() => {
|
||||
if (isModalClosed) {
|
||||
if (isModalClosed && !isPaymentSuccess) {
|
||||
return handleDiscount()
|
||||
}
|
||||
}, [isModalClosed])
|
||||
}, [isModalClosed, isPaymentSuccess])
|
||||
|
||||
useEffect(() => {
|
||||
if (error?.length && error !== "Product not found") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user