From 75eb3f05ed1076d69d96fe83a1082965912b5208 Mon Sep 17 00:00:00 2001 From: Vibhu Tomer Date: Thu, 14 May 2026 05:34:32 +0000 Subject: [PATCH] fix(files): prevent fatal TypeError crash on unauthenticated cloud access --- Govt-Billing-React/src/components/Files/Files.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Govt-Billing-React/src/components/Files/Files.tsx b/Govt-Billing-React/src/components/Files/Files.tsx index 9d18dfe..a70c393 100644 --- a/Govt-Billing-React/src/components/Files/Files.tsx +++ b/Govt-Billing-React/src/components/Files/Files.tsx @@ -86,6 +86,8 @@ const Files: React.FC<{ if (isLoading) return; if (!user) { alert("Login to Continue"); + setListFiles(false); + return; } else { files = await getFilesKeysFromFirestore(user.uid); }