Fix type mistake in account component

rebase/4.0.0rc2
Eugen Rochko 2016-09-18 18:44:52 +02:00
parent ee770c3fd3
commit f820edb463
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ const Account = React.createClass({
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) { if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) {
this.props.dispatch(fetchAccount(nextProps.params.accountId)); this.props.dispatch(fetchAccount(Number(nextProps.params.accountId)));
this.props.dispatch(fetchAccountTimeline(nextProps.params.accountId)); this.props.dispatch(fetchAccountTimeline(Number(nextProps.params.accountId)));
} }
}, },