From dcbc288fafdd1d3b86190ebdbc9f822fe792e3ed Mon Sep 17 00:00:00 2001 From: suryac Date: Tue, 4 Aug 2026 10:21:32 +0530 Subject: [PATCH] local storage clear set fix --- src/auth/AuthProvider.tsx | 2 +- src/screens/DailyLogsPage.tsx | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/auth/AuthProvider.tsx b/src/auth/AuthProvider.tsx index 25d8746..ae80f82 100644 --- a/src/auth/AuthProvider.tsx +++ b/src/auth/AuthProvider.tsx @@ -45,7 +45,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { setUserEmail(null); setIsAdmin(false); setRoles([]); - localStorage.removeItem('krishna_sales_user_email'); + localStorage.clear(); }, }; diff --git a/src/screens/DailyLogsPage.tsx b/src/screens/DailyLogsPage.tsx index 31734dd..322eb6f 100644 --- a/src/screens/DailyLogsPage.tsx +++ b/src/screens/DailyLogsPage.tsx @@ -23,11 +23,11 @@ export function DailyLogsPage() { const mapComponent = (
- -

Activity Locations

+ +

Activity Locations

- +
); @@ -35,14 +35,14 @@ export function DailyLogsPage() { return ( <> {instanceId == null && ( - { const id = row.instance_id as number | string | undefined; if (id != null) navigate(`/daily/${id}`); - }} + }} headerActions={