Skip to content

Commit bd2d9d1

Browse files
authored
fix: tweak boost progress calculation (#1594)
1 parent eb085da commit bd2d9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/renderer/src/modules/boost/boost-progress.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const BoostProgress = ({
2020
const [numberFormater] = useState(() => new Intl.NumberFormat())
2121
const t = useI18n()
2222
const rawPercentage = (boostCount / (boostCount + remainingBoostsToLevelUp)) * 100
23-
const percentage = 2 + (rawPercentage * (98 - 1)) / 100
24-
const nextLevel = level + 2
23+
const percentage = Math.max(rawPercentage, 2)
24+
const nextLevel = level + 1
2525
return (
2626
<div className="flex w-full flex-col px-2">
2727
<div className="relative -mx-2 pt-12">

0 commit comments

Comments
 (0)