local storage clear set fix

This commit is contained in:
suryac 2026-08-04 10:21:32 +05:30
parent d9e932ce8c
commit dcbc288faf
2 changed files with 17 additions and 17 deletions

View File

@ -45,7 +45,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
setUserEmail(null);
setIsAdmin(false);
setRoles([]);
localStorage.removeItem('krishna_sales_user_email');
localStorage.clear();
},
};

View File

@ -38,7 +38,7 @@ export function DailyLogsPage() {
<DailyLogsView
mapComponent={mapComponent}
refreshKey={refreshKey}
presetAlias="my_logs"
presetAlias=""
onRowClick={(row) => {
const id = row.instance_id as number | string | undefined;
if (id != null) navigate(`/daily/${id}`);