From 208b7e43ef459d0c87a80fb504571f46dd9019c4 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 22 May 2024 17:45:52 +0300 Subject: [PATCH] show the message always --- pages/dash.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/dash.tsx b/pages/dash.tsx index b9e8e6e..9802a3f 100644 --- a/pages/dash.tsx +++ b/pages/dash.tsx @@ -59,7 +59,7 @@ export default function DashboardPage({ initialItems, initialUserId, cartEvents, const currentPath = router.pathname; router.replace(currentPath, undefined, { shallow: true }); // Removes the query without affecting the history } - }, [newLogin]); + }, []);// show the message every time we load the page const handleUserSelection = async (publisher) => { if (!publisher || publisher.id === undefined) return;