set default value whenever the getPreference returns null or undefined (#1958)

This commit is contained in:
Saturnino Abril 2018-08-02 01:04:22 +08:00 committed by Elias Nahum
parent 5df8de035a
commit 1a822ee547

View file

@ -24,8 +24,8 @@ function mapStateToProps(state) {
state,
Preferences.CATEGORY_NOTIFICATIONS,
Preferences.EMAIL_INTERVAL,
Preferences.INTERVAL_NEVER
).toString();
Preferences.INTERVAL_NEVER.toString(),
) || '0';
return {
enableEmailBatching,