diff --git a/packages/after.js/README.md b/packages/after.js/README.md index 00630be7..3216ccc8 100644 --- a/packages/after.js/README.md +++ b/packages/after.js/README.md @@ -385,8 +385,7 @@ Dashboard.getInitialProps = async ({ match }) => { const { data } = await fetchProfile(); return { data }; } catch (error) { - if (error.response.status === 401) - return { redirectTo: '/login' }; + if (error.response.status === 401) return { redirectTo: '/login' }; return { error }; } }; @@ -542,9 +541,7 @@ export default class Document extends React.Component { return (
- -