diff --git a/bun.lockb b/bun.lockb index 8e9af19..d83674a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 3bbea06..30be46e 100644 --- a/package.json +++ b/package.json @@ -11,17 +11,17 @@ }, "devDependencies": { "@biomejs/biome": "^1.8.3", - "@sveltejs/kit": "^2.5.18", + "@sveltejs/kit": "^2.5.20", "@sveltejs/vite-plugin-svelte": "^3.1.1", "sass": "^1.77.8", "svelte": "^4.2.18", "svelte-adapter-bun": "^0.5.2", - "svelte-preprocess": "^5.1.4", - "vite": "^5.3.3" + "svelte-preprocess": "^6.0.2", + "vite": "^5.3.5" }, "type": "module", "dependencies": { - "lightweight-charts": "^4.1.7", + "lightweight-charts": "^4.2.0", "svelte-lightweight-charts": "^2.2.0" } } diff --git a/src/lib/formatPrice.js b/src/lib/formatPrice.js index b91e311..6c98ae6 100644 --- a/src/lib/formatPrice.js +++ b/src/lib/formatPrice.js @@ -21,7 +21,7 @@ const getSignificantDigits = (price) => { for (; i < 20; i++) { if (Math.floor(avg * 10 ** i) >= 1000) break; } - if (i <= 1 || avg == 0) i = 2; + if (i <= 1 || avg === 0) i = 2; return i; }; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5b5d490..abe104d 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -30,15 +30,26 @@ Object.groupBy ||= (values, keyFinder) => {