set default value whenever the getPreference returns null or undefined (#1958)
This commit is contained in:
parent
5df8de035a
commit
1a822ee547
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue