Prevents crash when sending emails (#2264)

* Quick fixes to core libs

* Prevents crash when sending emails
pull/2258/head^2
Omar López 2022-03-23 20:47:50 -07:00 committed by GitHub
parent f7a2e1e7ac
commit 767d1fb186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {