We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e73914c commit c3f07eeCopy full SHA for c3f07ee
src/app/store/preferences/actions.js
@@ -1,5 +1,7 @@
1
import store from 'store/dist/store.modern';
2
3
+import * as keys from './keys';
4
+
5
export const SET_PREFERENCES = 'SET_PREFERENCES';
6
7
const setOption = (key, val) => {
@@ -14,7 +16,9 @@ const setOption = (key, val) => {
14
16
15
17
export default {
18
setPreference: (preferences: Object) => (dispatch: Function) => {
- Object.keys(preferences).forEach(key => setOption(key, preferences[key]));
19
+ Object.keys(preferences).forEach(key =>
20
+ setOption(keys[key], preferences[key]),
21
+ );
22
dispatch({
23
type: SET_PREFERENCES,
24
preferences,
0 commit comments