aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/container/Results.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-19 20:24:37 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-19 20:24:37 +0100
commit50671ed027f874992ac50cfb21e123f579440737 (patch)
tree6f03e9f18151c12777a6122593eec2be63247c84 /src/client/react/components/container/Results.js
parent7250c51f716a050c105aae4e9f46d9736e108654 (diff)
Remove action creators
Diffstat (limited to 'src/client/react/components/container/Results.js')
-rw-r--r--src/client/react/components/container/Results.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/react/components/container/Results.js b/src/client/react/components/container/Results.js
index b36abb2..0f08d7a 100644
--- a/src/client/react/components/container/Results.js
+++ b/src/client/react/components/container/Results.js
@@ -25,7 +25,6 @@ import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import users from '../../users';
-import { setUser } from '../../actions/search';
import { userFromMatch } from '../../lib/url';
import Result from '../presentational/Result';
@@ -73,7 +72,7 @@ class Results extends React.Component {
// EDGE CASE: The user is set if the user changes, but it doesn't
// change if the result is already the one we are viewing.
// Therefor, we need to dispatch the SET_USER command manually.
- this.props.dispatch(setUser(user));
+ this.props.dispatch({ type: 'SEARCH/SET_USER', user });
} else {
this.props.history.push(`/${userId}`);
}