Skip to content

Commit

Permalink
[fix] app loading status
Browse files Browse the repository at this point in the history
  • Loading branch information
cupoftea4 committed Oct 27, 2024
1 parent 46bd8c8 commit 338c62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const App = () => {

return (
<>
{status ? (
{status !== Status.Loading ? (
<>
<BrowserRouter>
<Routes>
Expand Down
3 changes: 1 addition & 2 deletions src/utils/data/TimetableManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ class TimetableManager {
});

fetchData.then((t) => this.saveTimetableLocally(groupName, t, data?.subgroup));
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
return [cacheData, fetchData as any] as const;
return [cacheData, fetchData] as const;
}

getExamsTimetable(group: string, type?: TimetableType, checkCache = true): RenderPromises<ExamsTimetableItem[]> {
Expand Down

0 comments on commit 338c62e

Please sign in to comment.