Fix undefined when selected sound not found (#1025)
This commit is contained in:
parent
21b6567b2c
commit
30dea1dcf0
1 changed files with 1 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ class NotificationSettingsMobileAndroid extends NotificationSettingsMobileBase {
|
|||
} else {
|
||||
selectedUri = this.sound;
|
||||
const selected = sounds.find((s) => s.uri === selectedUri);
|
||||
sound = selected.name;
|
||||
sound = selected ? selected.name : 'none';
|
||||
}
|
||||
|
||||
NotificationPreferences.setNotificationSound(selectedUri);
|
||||
|
|
|
|||
Loading…
Reference in a new issue