Make profile SSR formatting deterministic
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { useEffect, useMemo, useState } from 'react'
|
||||
import ArtworkGallery from '../../artwork/ArtworkGallery'
|
||||
import { formatProfileNumber } from '../../../lib/profileFormatters'
|
||||
|
||||
function slugify(value) {
|
||||
return String(value ?? '')
|
||||
@@ -9,7 +10,7 @@ function slugify(value) {
|
||||
}
|
||||
|
||||
function formatNumber(value) {
|
||||
return Number(value ?? 0).toLocaleString()
|
||||
return formatProfileNumber(value)
|
||||
}
|
||||
|
||||
function sortByPublishedAt(items) {
|
||||
|
||||
Reference in New Issue
Block a user