Skip to content

Commit

Permalink
progress is loaded async
Browse files Browse the repository at this point in the history
  • Loading branch information
GitPaulo authored Jan 24, 2025
1 parent 6941ced commit 1ec184d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@
debouncedFilterQuests(); // Trigger the debounced filter
}
function initProgress() {
async function initProgress() {
if (hasSharedProgress()) {
loadSharedProgress();
await loadSharedProgress();
}
initAllExpansionProgress();
Expand All @@ -330,10 +330,10 @@
closeExpansionAndQuestGroups();
}
onMount(() => {
onMount(async () => {
const loadedQuests = data.quests;
initQuests(loadedQuests);
initProgress();
await initProgress();
updateLastCheckedQuest();
updateCurrentExpansion();
Expand Down

0 comments on commit 1ec184d

Please sign in to comment.