Skip to content

Commit

Permalink
cleanup: more rampricehistory cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 1, 2024
1 parent 37cee36 commit e38a22c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/components/chart/rampricehistory.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
let currentPrice = $derived(String(currentPoint.value));
let percentChange = $derived.by(() => {
if (!currentPoint || !dataRange[dataRange.length - 1]) return '0%';
const current = Number(currentPoint.value.quantity);
const initial = Number(dataRange[dataRange.length - 1].value.quantity);
return (((current - initial) / current) * 100).toFixed(2) + '%';
Expand Down

0 comments on commit e38a22c

Please sign in to comment.