We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb085da commit bd2d9d1Copy full SHA for bd2d9d1
apps/renderer/src/modules/boost/boost-progress.tsx
@@ -20,8 +20,8 @@ export const BoostProgress = ({
20
const [numberFormater] = useState(() => new Intl.NumberFormat())
21
const t = useI18n()
22
const rawPercentage = (boostCount / (boostCount + remainingBoostsToLevelUp)) * 100
23
- const percentage = 2 + (rawPercentage * (98 - 1)) / 100
24
- const nextLevel = level + 2
+ const percentage = Math.max(rawPercentage, 2)
+ const nextLevel = level + 1
25
return (
26
<div className="flex w-full flex-col px-2">
27
<div className="relative -mx-2 pt-12">
0 commit comments