diff options
author | Eric Bailey <git@esb.lol> | 2025-05-10 15:08:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-10 13:08:42 -0700 |
commit | 75ffb3d243a5415d173f2bca8a5334b70451a1f4 (patch) | |
tree | ede81969ec173d857f7ba8da0ea4370ca13d865d /src/components/dialogs/nuxs/index.tsx | |
parent | d01b9ed44123c4182279f7be56a9e66955e342ed (diff) | |
download | voidsky-75ffb3d243a5415d173f2bca8a5334b70451a1f4.tar.zst |
Don't show NUXs to brand new users (#8362)
* Ensure verification nux is only shown to older users * Update comment
Diffstat (limited to 'src/components/dialogs/nuxs/index.tsx')
-rw-r--r-- | src/components/dialogs/nuxs/index.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx index c8c539b85..11377e1de 100644 --- a/src/components/dialogs/nuxs/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -16,6 +16,7 @@ import {InitialVerificationAnnouncement} from '#/components/dialogs/nuxs/Initial * NUXs */ import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' +import {isDaysOld} from '#/components/dialogs/nuxs/utils' type Context = { activeNux: Nux | undefined @@ -33,7 +34,9 @@ const queuedNuxs: { }[] = [ { id: Nux.InitialVerificationAnnouncement, - enabled: () => true, + enabled: ({currentProfile}) => { + return isDaysOld(2, currentProfile.createdAt) + }, }, ] |