diff --git a/src/components/pages/ABDesign/v1/pages/TrialPayment/index.tsx b/src/components/pages/ABDesign/v1/pages/TrialPayment/index.tsx index 48cfe80..f617d36 100644 --- a/src/components/pages/ABDesign/v1/pages/TrialPayment/index.tsx +++ b/src/components/pages/ABDesign/v1/pages/TrialPayment/index.tsx @@ -72,10 +72,10 @@ function TrialPaymentPage() { }, [isPaymentSuccess]) useEffect(() => { - if (isModalClosed && !isPaymentSuccess) { + if (isModalClosed) { return handleDiscount() } - }, [isModalClosed, isPaymentSuccess]) + }, [isModalClosed]) useEffect(() => { if (error?.length && error !== "Product not found") {