Skip to content

Commit 000e465

Browse files
committed
delay upgrade modal showing
1 parent ed7e504 commit 000e465

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/editor.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ const EditorPage = () => {
7575

7676
useEffect(() => {
7777
const isUpgradeShown = Cookie.get("upgrade_shown");
78-
if (!isUpgradeShown) setVisible("UpgradeModal", true);
78+
if (!isUpgradeShown) {
79+
setTimeout(() => setVisible("UpgradeModal", true), 30_000);
80+
}
7981
}, [setVisible]);
8082

8183
useEffect(() => {

0 commit comments

Comments
 (0)