Prevents crash when sending emails (#2264)

* Quick fixes to core libs

* Prevents crash when sending emails
This commit is contained in:
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

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 {