aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-18 21:29:41 -0500
committermat <github@matdoes.dev>2022-05-18 21:29:41 -0500
commit97688e22c8335642b72d200ce0a865353bef5207 (patch)
treee0b638cad2b38c17f84fe5270f360a21756f6728 /src/routes
parent05bca625f53f021596bc8e84fb7ee6933114a65a (diff)
downloadskyblock-stats-97688e22c8335642b72d200ce0a865353bef5207.tar.gz
skyblock-stats-97688e22c8335642b72d200ce0a865353bef5207.tar.bz2
skyblock-stats-97688e22c8335642b72d200ce0a865353bef5207.zip
Fix lag
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/auctionprices.svelte9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/routes/auctionprices.svelte b/src/routes/auctionprices.svelte
index 3c57e1e..9e7615c 100644
--- a/src/routes/auctionprices.svelte
+++ b/src/routes/auctionprices.svelte
@@ -30,7 +30,7 @@
export let data: ItemAuctionsSchema[]
export let auctionItems: Record<string, { display: { name: string }; vanillaId?: string }>
- let currentlyPreviewedAuction: PreviewedAuctionData | null
+ let currentlyPreviewedAuction: PreviewedAuctionData | null = null
let query: string = ''
@@ -89,6 +89,13 @@
loadingPage = false
}
}
+
+ $: {
+ if (browser && !currentlyPreviewedAuction) {
+ for (const el of document.getElementsByClassName('selected-auction'))
+ el.classList.remove('selected-auction')
+ }
+ }
</script>
<Head title="SkyBlock Auction Prices" />