diff --git a/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte b/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte
index c82be19fed..4322822ec8 100644
--- a/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte
+++ b/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte
@@ -9,7 +9,7 @@
async function generateAPIKey() {
try {
apiKey = await auth.generateAPIKey()
- notifications.success("New API key generated.")
+ notifications.success("New API key generated")
} catch (err) {
notifications.error("Unable to generate new API key")
}
@@ -18,7 +18,11 @@
}
onMount(async () => {
- apiKey = await auth.fetchAPIKey()
+ try {
+ apiKey = await auth.fetchAPIKey()
+ } catch (err) {
+ notifications.error("Unable to fetch API key")
+ }
})
diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte
index 876f34c0bb..7aa4671f7c 100644
--- a/packages/builder/src/pages/builder/portal/_layout.svelte
+++ b/packages/builder/src/pages/builder/portal/_layout.svelte
@@ -166,7 +166,7 @@
{#if $auth.isBuilder}
{/if}