From 573f7ea4dadeaf8ef42c4eeb3141bd888583e1f5 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 29 Dec 2024 15:27:53 -0700 Subject: [PATCH] Use Svelte 5 #each enhancement --- scripts/misc/starblast/upgrade/AppMiscStarblastUpgrade.svelte | 2 +- scripts/tools/match_win/AppToolsMatchWin.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/misc/starblast/upgrade/AppMiscStarblastUpgrade.svelte b/scripts/misc/starblast/upgrade/AppMiscStarblastUpgrade.svelte index 85d658b..282355b 100644 --- a/scripts/misc/starblast/upgrade/AppMiscStarblastUpgrade.svelte +++ b/scripts/misc/starblast/upgrade/AppMiscStarblastUpgrade.svelte @@ -86,7 +86,7 @@ const upgradeInfo = $derived(solve(shipLevel, shipEnergy[0], shipEnergy[1], ship Damage\Energy - {#each upgradeInfo.table[0] as _, i} + {#each upgradeInfo.table[0], i} {i} {/each} diff --git a/scripts/tools/match_win/AppToolsMatchWin.svelte b/scripts/tools/match_win/AppToolsMatchWin.svelte index d95e7ad..bf9832a 100644 --- a/scripts/tools/match_win/AppToolsMatchWin.svelte +++ b/scripts/tools/match_win/AppToolsMatchWin.svelte @@ -82,7 +82,7 @@ const memo = $derived((() => { Player score - {#each memo as _, i} + {#each memo, i} {i} {/each}