Merge branch 'hotfix/payment' into 'main'

Обновил проверку закрытия формы ввода карты

See merge request witapp/aura-webapp!511
This commit is contained in:
Daniil Chemerkin 2024-12-31 00:10:45 +00:00
commit 0a38d8694c

View File

@ -72,10 +72,10 @@ function TrialPaymentPage() {
}, [isPaymentSuccess]) }, [isPaymentSuccess])
useEffect(() => { useEffect(() => {
if (isModalClosed) { if (isModalClosed && !isPaymentSuccess) {
return handleDiscount() return handleDiscount()
} }
}, [isModalClosed]) }, [isModalClosed, isPaymentSuccess])
useEffect(() => { useEffect(() => {
if (error?.length && error !== "Product not found") { if (error?.length && error !== "Product not found") {