Make XP progress formatting hydration-safe

This commit is contained in:
2026-08-29 21:28:26 +02:00
parent 99d94c9333
commit 187292a374
2 changed files with 67 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import React from 'react'
import { formatProfileNumber } from '../../lib/profileFormatters'
function formatXp(value) {
return new Intl.NumberFormat().format(Number(value || 0))
return formatProfileNumber(value)
}
function clampPercent(value) {