fix: tweak boost progress calculation (#1594)

This commit is contained in:
Whitewater
2024-11-14 17:54:53 +08:00
committed by GitHub
parent eb085da136
commit bd2d9d1175
@@ -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">