Skip to content

Commit

Permalink
fix: tweak boost progress calculation (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs authored Nov 14, 2024
1 parent eb085da commit bd2d9d1
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, 2)
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 bd2d9d1

Please sign in to comment.