diff --git a/app/Resources/client/src/routes/Answer/Answer.js b/app/Resources/client/src/routes/Answer/Answer.js index 88232966..9f7b5692 100644 --- a/app/Resources/client/src/routes/Answer/Answer.js +++ b/app/Resources/client/src/routes/Answer/Answer.js @@ -22,13 +22,11 @@ class Answer extends React.Component { if (response instanceof APIError) { if (response.details.status === 401 && response.details.error.error === 'incorrect-passphrase') { this.props.setRequiresPassphrase(true) - this.props.setLoading(false) } else { browserHistory.push('/404') } - } else { - this.props.setLoading(false) } + this.props.setLoading(false) }) } diff --git a/app/Resources/client/src/routes/NotFound/NotFound.js b/app/Resources/client/src/routes/NotFound/NotFound.js index 3857bdf2..34ee4043 100644 --- a/app/Resources/client/src/routes/NotFound/NotFound.js +++ b/app/Resources/client/src/routes/NotFound/NotFound.js @@ -1,12 +1,16 @@ import React from 'react' import Back from 'components/Back/Back' +import './NotFound.scss' export const NotFound = () => (