From f6266c10c52b0c51bf7663d2faa7f6eb10bf27cf Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 29 May 2017 14:46:08 -0400 Subject: [PATCH] RN-147 Properly handle Account Notifications when Email Batching is enabled (#578) --- app/screens/account_notifications/account_notifications.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/screens/account_notifications/account_notifications.js b/app/screens/account_notifications/account_notifications.js index 13e940e92..b0fb77e50 100644 --- a/app/screens/account_notifications/account_notifications.js +++ b/app/screens/account_notifications/account_notifications.js @@ -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';