Skip to content

Commit

Permalink
fix: adjust boost progress calculation for accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Nov 14, 2024
1 parent eb085da commit 972f5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/renderer/src/modules/boost/boost-progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export const BoostProgress = ({
const [numberFormater] = useState(() => new Intl.NumberFormat())
const t = useI18n()
const rawPercentage = (boostCount / (boostCount + remainingBoostsToLevelUp)) * 100
const percentage = 2 + (rawPercentage * (98 - 1)) / 100
const nextLevel = level + 2
const percentage = Math.max(rawPercentage, 4)
const nextLevel = level + 1
return (
<div className="flex w-full flex-col px-2">
<div className="relative -mx-2 pt-12">
Expand Down

0 comments on commit 972f5b8

Please sign in to comment.