diff --git a/db.ts b/db.ts index 48ec7b8..0c23f55 100644 --- a/db.ts +++ b/db.ts @@ -138,7 +138,7 @@ export default class DB { platform: userevent.source.platform, platformVersion: userevent.source.platformVersion, legacyUserAgent: userevent.source.legacyUserAgent, - }, String.fromCodePoint(...(location.country as string).toUpperCase().split('').map(char => 127397 + char.charCodeAt(0))) + " " + location.city + " (" + location.timezone + ")", location.timezone]; + }, (location.country ? String.fromCodePoint(...(location.country as string).toUpperCase().split('').map(char => 127397 + char.charCodeAt(0))) : "") + " " + location.city + " (" + location.timezone + ")", location.timezone]; } async saveTranscript(transcript: any) {