diff --git a/src/routes/wish/_rank.svelte b/src/routes/wish/_rank.svelte index 8bd866b5..c2e8fa61 100644 --- a/src/routes/wish/_rank.svelte +++ b/src/routes/wish/_rank.svelte @@ -59,7 +59,7 @@ if (qty >= value) break; } - percentage = (totalLower / total) * 100; + percentage = 100 - (totalLower / total) * 100; console.log(totalLower, percentage, value); loading = false; @@ -86,7 +86,7 @@
TOP - {loading ? '...' : percentage.toFixed(0)}% + {loading ? '...' : percentage.toFixed(percentage < 2 ? 1 : 0)}%

{$t('wish.rank.level')}