diff options
Diffstat (limited to 'app/javascript/mastodon/features/report/index.js')
-rw-r--r-- | app/javascript/mastodon/features/report/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/report/index.js b/app/javascript/mastodon/features/report/index.js index 217802b5c..23aba39de 100644 --- a/app/javascript/mastodon/features/report/index.js +++ b/app/javascript/mastodon/features/report/index.js @@ -52,7 +52,7 @@ class Report extends React.PureComponent { componentWillMount () { if (!this.props.account) { - this.context.router.replace('/'); + this.context.router.history.replace('/'); } } @@ -76,7 +76,7 @@ class Report extends React.PureComponent { handleSubmit = () => { this.props.dispatch(submitReport()); - this.context.router.replace('/'); + this.context.router.history.replace('/'); } render () { |