Prevent unecessary calls (#4561)
(cherry picked from commit ecb48797675c5be24508bf47141e930c64dac14e)
This commit is contained in:
parent
983d85384b
commit
4165a02b2d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export function NewskieDialog({
|
||||||
const moderation = moderateProfile(profile, moderationOpts)
|
const moderation = moderateProfile(profile, moderationOpts)
|
||||||
return sanitizeDisplayName(name, moderation.ui('displayName'))
|
return sanitizeDisplayName(name, moderation.ui('displayName'))
|
||||||
}, [moderationOpts, profile])
|
}, [moderationOpts, profile])
|
||||||
const [now] = React.useState(Date.now())
|
const [now] = React.useState(() => Date.now())
|
||||||
const timeAgo = useGetTimeAgo()
|
const timeAgo = useGetTimeAgo()
|
||||||
const createdAt = profile.createdAt as string | undefined
|
const createdAt = profile.createdAt as string | undefined
|
||||||
const daysOld = React.useMemo(() => {
|
const daysOld = React.useMemo(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue