Skip to content

Commit

Permalink
[FIX] Null value at Notifications Preferences tab (#15638)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored and ggazzo committed Oct 28, 2019
1 parent 0646274 commit b273bc4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ Template.pushNotificationsFlexTab.helpers({
return Template.instance().form.audioNotifications.get();
},
audioNotificationValue() {
const value = Template.instance().form.audioNotificationValue.get().split(' ');
if (value[0] === '0') {
const audioNotificationValue = Template.instance().form.audioNotificationValue.get();
const value = audioNotificationValue && audioNotificationValue.split(' ');
if (!value || value[0] === '0') {
return t('Use_account_preference');
}

Expand Down

0 comments on commit b273bc4

Please sign in to comment.