Make XP progress formatting hydration-safe
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user