diff --git a/src/components/pages/ABDesign/v1/pages/TrialPayment/index.tsx b/src/components/pages/ABDesign/v1/pages/TrialPayment/index.tsx index f617d36..48cfe80 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) { + if (isModalClosed && !isPaymentSuccess) { return handleDiscount() } - }, [isModalClosed]) + }, [isModalClosed, isPaymentSuccess]) useEffect(() => { if (error?.length && error !== "Product not found") {