Fix NotFound compo

This commit is contained in:
soupette 2019-12-16 17:38:19 +01:00
parent e302b210b3
commit 9e64bc095a

View File

@ -17,7 +17,7 @@ function NotFound({ history }) {
onClick={e => { onClick={e => {
e.stopPropagation(); e.stopPropagation();
history.goBack(); history.push('/');
}} }}
/> />
</Wrapper> </Wrapper>
@ -26,7 +26,7 @@ function NotFound({ history }) {
NotFound.propTypes = { NotFound.propTypes = {
history: PropTypes.shape({ history: PropTypes.shape({
goBack: PropTypes.func, push: PropTypes.func,
}).isRequired, }).isRequired,
}; };