From 338c62e15b66623a601ca7f29e0dca27884935ce Mon Sep 17 00:00:00 2001 From: cupoftea4 Date: Mon, 28 Oct 2024 01:24:36 +0200 Subject: [PATCH] [fix] app loading status --- src/App.tsx | 2 +- src/utils/data/TimetableManager.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1ae1d19..1c46923 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -34,7 +34,7 @@ const App = () => { return ( <> - {status ? ( + {status !== Status.Loading ? ( <> diff --git a/src/utils/data/TimetableManager.ts b/src/utils/data/TimetableManager.ts index b99a538..cced1be 100644 --- a/src/utils/data/TimetableManager.ts +++ b/src/utils/data/TimetableManager.ts @@ -203,8 +203,7 @@ class TimetableManager { }); fetchData.then((t) => this.saveTimetableLocally(groupName, t, data?.subgroup)); - // biome-ignore lint/suspicious/noExplicitAny: - return [cacheData, fetchData as any] as const; + return [cacheData, fetchData] as const; } getExamsTimetable(group: string, type?: TimetableType, checkCache = true): RenderPromises {