diff --git a/src/domain/session/settings/SettingsViewModel.js b/src/domain/session/settings/SettingsViewModel.js index 7120f5fb..1f676bb3 100644 --- a/src/domain/session/settings/SettingsViewModel.js +++ b/src/domain/session/settings/SettingsViewModel.js @@ -28,6 +28,9 @@ class PushNotificationStatus { } function formatKey(key) { + if (!key) { + return null; + } const partLength = 4; const partCount = Math.ceil(key.length / partLength); let formattedKey = "";