RN-147 Properly handle Account Notifications when Email Batching is enabled (#578)
This commit is contained in:
parent
febc818bbb
commit
f6266c10c5
1 changed files with 3 additions and 1 deletions
|
|
@ -120,7 +120,9 @@ class AccountNotifications extends PureComponent {
|
|||
let interval;
|
||||
if (this.props.config.EnableEmailBatching === 'true') {
|
||||
const emailPreferences = getPreferencesByCategory(this.props.myPreferences, Preferences.CATEGORY_NOTIFICATIONS);
|
||||
interval = emailPreferences.get(Preferences.EMAIL_INTERVAL).value;
|
||||
if (emailPreferences.size) {
|
||||
interval = emailPreferences.get(Preferences.EMAIL_INTERVAL).value;
|
||||
}
|
||||
}
|
||||
|
||||
const comments = notifyProps.comments || 'never';
|
||||
|
|
|
|||
Loading…
Reference in a new issue