From fbf9b69a6bdd44174166b44ffc1ea9b8046a2034 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 14 Jun 2023 13:48:10 +0100 Subject: [PATCH] Simplify notification --- packages/builder/src/components/start/ExportAppModal.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/builder/src/components/start/ExportAppModal.svelte b/packages/builder/src/components/start/ExportAppModal.svelte index 49c2e492f3..0e5930487d 100644 --- a/packages/builder/src/components/start/ExportAppModal.svelte +++ b/packages/builder/src/components/start/ExportAppModal.svelte @@ -51,11 +51,7 @@ notifications.error("Error exporting the app.") } } catch (error) { - let message = "Error downloading the exported app" - if (error.message) { - message += `: ${error.message}` - } - notifications.error("Error downloading the exported app", message) + notifications.error(error.message ?? "Error downloading the exported app") } }