From 767d1fb186f2417ebe386bb6e84880fcdeb3ea3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Wed, 23 Mar 2022 20:47:50 -0700 Subject: [PATCH] Prevents crash when sending emails (#2264) * Quick fixes to core libs * Prevents crash when sending emails --- packages/app-store/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-store/utils.ts b/packages/app-store/utils.ts index 460676b76f..293e000b70 100644 --- a/packages/app-store/utils.ts +++ b/packages/app-store/utils.ts @@ -104,7 +104,7 @@ export function getLocationTypes(): string[] { } export function getAppName(name: string) { - return ALL_APPS_MAP[name as keyof typeof ALL_APPS_MAP].name; + return ALL_APPS_MAP[name as keyof typeof ALL_APPS_MAP]?.name || "No App Name"; } export function getAppType(name: string): string {