From 000e46566d2116becc2c0e8ea7d633427ebf9a07 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Tue, 24 Dec 2024 21:03:09 +0300 Subject: [PATCH] delay upgrade modal showing --- src/pages/editor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/editor.tsx b/src/pages/editor.tsx index adbf392..84cd6d7 100644 --- a/src/pages/editor.tsx +++ b/src/pages/editor.tsx @@ -75,7 +75,9 @@ const EditorPage = () => { useEffect(() => { const isUpgradeShown = Cookie.get("upgrade_shown"); - if (!isUpgradeShown) setVisible("UpgradeModal", true); + if (!isUpgradeShown) { + setTimeout(() => setVisible("UpgradeModal", true), 30_000); + } }, [setVisible]); useEffect(() => {