diff --git a/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte b/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte index fcc6fd09a..8adbf4f10 100644 --- a/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte +++ b/src/routes/(console)/project-[project]/auth/user-[user]/updateStatus.svelte @@ -39,7 +39,7 @@ await invalidate(Dependencies.USER); addNotification({ message: `${$user.name || $user.email || $user.phone || 'The account'} has been ${ - $user.phoneVerification ? 'unverified' : 'verified' + !$user.phoneVerification ? 'unverified' : 'verified' }`, type: 'success' }); diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte index ab1f0e539..12afa4947 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/indexes/createIndex.svelte @@ -83,12 +83,9 @@ }); trackEvent(Submit.IndexCreate); showCreateIndex = false; - } catch (error) { - addNotification({ - message: error.message, - type: 'error' - }); - trackError(error, Submit.IndexCreate); + } catch (e) { + error = e.message; + trackError(e, Submit.IndexCreate); } }