about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-06-18 13:52:44 -0500
committerGitHub <noreply@github.com>2024-06-18 21:52:44 +0300
commit4165a02b2d712ba20b9fdbf435d4cb00c03e5e52 (patch)
treea7ede5ad46ffc89db1c9edc1eb769325f85dda34 /src
parent983d85384b9e736193e6c89107df5ced447a056a (diff)
downloadvoidsky-4165a02b2d712ba20b9fdbf435d4cb00c03e5e52.tar.zst
Prevent unecessary calls (#4561)
(cherry picked from commit ecb48797675c5be24508bf47141e930c64dac14e)
Diffstat (limited to 'src')
-rw-r--r--src/components/NewskieDialog.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/NewskieDialog.tsx b/src/components/NewskieDialog.tsx
index 789a42d5f..281430e31 100644
--- a/src/components/NewskieDialog.tsx
+++ b/src/components/NewskieDialog.tsx
@@ -30,7 +30,7 @@ export function NewskieDialog({
     const moderation = moderateProfile(profile, moderationOpts)
     return sanitizeDisplayName(name, moderation.ui('displayName'))
   }, [moderationOpts, profile])
-  const [now] = React.useState(Date.now())
+  const [now] = React.useState(() => Date.now())
   const timeAgo = useGetTimeAgo()
   const createdAt = profile.createdAt as string | undefined
   const daysOld = React.useMemo(() => {