From b7deb3187bc70d32ecb22388403b94a045eb02dd Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 27 Apr 2026 13:00:09 -0500 Subject: [PATCH] Clean up company selection loading guard Co-Authored-By: Paperclip --- ui/src/context/CompanyContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/context/CompanyContext.tsx b/ui/src/context/CompanyContext.tsx index e54a550fb44..18a043f0c35 100644 --- a/ui/src/context/CompanyContext.tsx +++ b/ui/src/context/CompanyContext.tsx @@ -94,7 +94,7 @@ export function CompanyProvider({ children }: { children: ReactNode }) { useEffect(() => { if (isLoading) return; if (companies.length === 0) { - if (shouldClearStoredCompanySelection({ companies, isLoading, unauthorized: companyListUnauthorized })) { + if (shouldClearStoredCompanySelection({ companies, isLoading: false, unauthorized: companyListUnauthorized })) { if (selectedCompanyId !== null) { setSelectedCompanyIdState(null); }