Skip to content

Commit

Permalink
fix(jsx): Error should actually respect the redirectionTimeout.
Browse files Browse the repository at this point in the history
I should really be writing tests for these components, but I really want that cover letter generator instead.
  • Loading branch information
randytarampi committed Aug 15, 2018
1 parent 2b8b1e9 commit 194a806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jsx/lib/containers/error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ConnectedError = connect(
null,
(dispatch, ownProps) => {
return {
timedRedirect: () => setTimeout(dispatch(push(ownProps.redirectionLocation)), ownProps.redirectionTimeout * 1000)
timedRedirect: () => setTimeout(() => dispatch(push(ownProps.redirectionLocation)), ownProps.redirectionTimeout * 1000)
};
}
)(Error);
Expand Down

0 comments on commit 194a806

Please sign in to comment.