From f6e92a0c682a082c1e0865fd3da2cb91c974887a Mon Sep 17 00:00:00 2001 From: coder77 Date: Wed, 3 Dec 2025 20:09:14 +0530 Subject: [PATCH] #171 Issue: Update App.tsx --- frontend/src/App.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 9f70aa6c..18e6a915 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -57,15 +57,19 @@ function App() { (event, session) => { switch (event) { case "SIGNED_IN": - setIsAuthenticated(true); - toast.success("Signed in!"); - break; + if (!isAuthenticated) { + setIsAuthenticated(true); + toast.success("Signed in!"); + } + break; case "SIGNED_OUT": - setIsAuthenticated(false); - setRepoData(null); - toast.success("Signed out!"); - break; + if (isAuthenticated) { + setIsAuthenticated(false); + setRepoData(null); + toast.success("Signed out!"); + } + break; case "PASSWORD_RECOVERY": toast("Check your email to reset your password.");