Skip to content

Commit

Permalink
Fix gradebook state loader
Browse files Browse the repository at this point in the history
  • Loading branch information
PurelyAnecdotal committed Dec 28, 2024
1 parent b3adb4f commit 93ddda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(authed)/grades/gradebook.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { periodOverrideState, type PeriodOverrideState } from './reportingPeriod
export const gradebookState: { gradebook?: Gradebook; loaded: boolean } = $state({ loaded: false });

export const loadGradebook = async () => {
if (!acc.studentAccount) return;
if (gradebookState.gradebook || !acc.studentAccount) return;

gradebookState.loaded = false;

Expand Down

0 comments on commit 93ddda1

Please sign in to comment.