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 ( - - Welcome to the Afterparty {helmet.title.toComponent()} {helmet.meta.toComponent()} diff --git a/packages/after.js/src/Document.tsx b/packages/after.js/src/Document.tsx index 62560ff2..5e45c8a3 100644 --- a/packages/after.js/src/Document.tsx +++ b/packages/after.js/src/Document.tsx @@ -22,7 +22,6 @@ export class Document extends React.Component { - Welcome to the Afterparty {helmet.title.toComponent()} {helmet.meta.toComponent()}