Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

fix: update CTA toast display timing and clarify comments

Vlad Sazonau1e923b8ab882
diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsx
index f1e8ebb..7f8ee4a 100644
--- a/src/app/(app)/page.client.tsx
+++ b/src/app/(app)/page.client.tsx
@@ -304,15 +304,15 @@ export function AppPageClient({
}
}, [invoiceDataState, router, searchParams]);
- // Show CTA toast every minute
+ // Show CTA toast
useEffect(() => {
// only show on production
if (process.env.NODE_ENV !== "production") {
return;
}
- // Show cta toast after 15 seconds on the app page
- const initialTimer = setTimeout(showCTAToast, 15_000);
+ // Show cta toast after x seconds on the app page
+ const initialTimer = setTimeout(showCTAToast, 25_000);
return () => {
clearTimeout(initialTimer);