Skip to content

Commit c3f07ee

Browse files
author
Ives van Hoorne
committed
Fix preferences saving
1 parent e73914c commit c3f07ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/store/preferences/actions.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import store from 'store/dist/store.modern';
22

3+
import * as keys from './keys';
4+
35
export const SET_PREFERENCES = 'SET_PREFERENCES';
46

57
const setOption = (key, val) => {
@@ -14,7 +16,9 @@ const setOption = (key, val) => {
1416

1517
export default {
1618
setPreference: (preferences: Object) => (dispatch: Function) => {
17-
Object.keys(preferences).forEach(key => setOption(key, preferences[key]));
19+
Object.keys(preferences).forEach(key =>
20+
setOption(keys[key], preferences[key]),
21+
);
1822
dispatch({
1923
type: SET_PREFERENCES,
2024
preferences,

0 commit comments

Comments
 (0)