From: Eugen Rochko Date: Sun, 18 Sep 2016 16:44:52 +0000 (+0200) Subject: Fix type mistake in account component X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=f820edb463109e313e836d8e2f210927a0eba7d1;p=mastodon.git Fix type mistake in account component --- diff --git a/app/assets/javascripts/components/features/account/index.jsx b/app/assets/javascripts/components/features/account/index.jsx index 14f22960b..edbc34826 100644 --- a/app/assets/javascripts/components/features/account/index.jsx +++ b/app/assets/javascripts/components/features/account/index.jsx @@ -40,8 +40,8 @@ const Account = React.createClass({ componentWillReceiveProps(nextProps) { if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) { - this.props.dispatch(fetchAccount(nextProps.params.accountId)); - this.props.dispatch(fetchAccountTimeline(nextProps.params.accountId)); + this.props.dispatch(fetchAccount(Number(nextProps.params.accountId))); + this.props.dispatch(fetchAccountTimeline(Number(nextProps.params.accountId))); } },