Skip to content

Commit 5f461ee

Browse files
Changes added to Notification function
1 parent f2c57a3 commit 5f461ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
displayName = `${displayName}${displayName[displayName.length - 1].toLowerCase() === 's' ? "' email" : "'s email"}`;
3131
}
3232
addNotification({
33-
message: `${$user.name || $user.email || $user.phone || 'The account'} has been ${
33+
message: `${displayName || $user.email || $user.phone} has been ${
3434
!$user.emailVerification ? 'unverified' : 'verified'
3535
}`,
3636
type: 'success'
@@ -59,7 +59,7 @@
5959
displayName = `${displayName}${displayName[displayName.length - 1].toLowerCase() === 's' ? "' phone" : "'s phone"}`;
6060
}
6161
addNotification({
62-
message: `${$user.name || $user.email || $user.phone || 'The account'} has been ${
62+
message: `${displayName || $user.phone} has been ${
6363
!$user.phoneVerification ? 'unverified' : 'verified'
6464
}`,
6565
type: 'success'

0 commit comments

Comments
 (0)