Skip to content

Commit

Permalink
Update settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop authored Feb 12, 2019
1 parent e064aae commit c7ca8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/reducers/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import {
import settingsOptions from '../constants/settings';

const initialState = {};
const defautlSettings = settingsOptions.reduce((acc, option) => ({
const defaultSettings = settingsOptions.reduce((acc, option) => ({
...acc,
[option.name]: option.default
}), {});

export default function SettingsReducer(state=initialState, action) {
switch (action.type) {
case READ_SETTINGS:
return Object.assign(defautlSettings, action.payload);
return Object.assign(defaultSettings, action.payload);
case SET_BOOLEAN_OPTION:
case SET_STRING_OPTION:
case SET_NUMBER_OPTION:
Expand Down

0 comments on commit c7ca8a3

Please sign in to comment.