aboutsummaryrefslogtreecommitdiff
path: root/src/background/reducers/find.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/reducers/find.js')
-rw-r--r--src/background/reducers/find.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/background/reducers/find.js b/src/background/reducers/find.js
index 4ded801..bbc6b36 100644
--- a/src/background/reducers/find.js
+++ b/src/background/reducers/find.js
@@ -7,9 +7,8 @@ const defaultState = {
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.FIND_SET_KEYWORD:
- return Object.assign({}, state, {
- keyword: action.keyword,
- });
+ return { ...state,
+ keyword: action.keyword, };
default:
return state;
}