Skip to content

Commit 288c76b

Browse files
Email Verification Pop up display name formatted
1 parent 8c99e6c commit 288c76b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/routes/(console)/project-[region]-[project]/auth/user-[user]/updateStatus.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
.forProject(page.params.region, page.params.project)
2424
.users.updateEmailVerification($user.$id, !$user.emailVerification);
2525
await invalidate(Dependencies.USER);
26+
27+
if ($user.name) {
28+
// name formatter
29+
displayName = $user.name;
30+
displayName = `${displayName}${displayName[displayName.length - 1].toLowerCase() === 's' ? "' email" : "'s email"}`;
31+
}
2632
addNotification({
2733
message: `${$user.name || $user.email || $user.phone || 'The account'} has been ${
2834
!$user.emailVerification ? 'unverified' : 'verified'

0 commit comments

Comments
 (0)