aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/follow.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducers/follow.js')
-rw-r--r--src/reducers/follow.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reducers/follow.js b/src/reducers/follow.js
index a2397b4..27543ec 100644
--- a/src/reducers/follow.js
+++ b/src/reducers/follow.js
@@ -3,7 +3,7 @@ import actions from 'actions';
const defaultState = {
enabled: false,
newTab: false,
- keys: [],
+ keys: '',
};
export default function reducer(state = defaultState, action = {}) {
@@ -19,7 +19,7 @@ export default function reducer(state = defaultState, action = {}) {
});
case actions.FOLLOW_KEY_PRESS:
return Object.assign({}, state, {
- keys: state.keys.concat([action.key]),
+ keys: state.keys + action.key,
});
case actions.FOLLOW_BACKSPACE:
return Object.assign({}, state, {