From a86c50cf9506c193b76e52d5f10d41d64146a925 Mon Sep 17 00:00:00 2001 From: Nima Arefi Date: Sat, 19 Dec 2020 20:37:44 +0330 Subject: [PATCH 1/2] fix: update Document.js --- packages/after.js/src/Document.tsx | 1 - 1 file changed, 1 deletion(-) 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()} From 494365181490446409711ee3b1a8caf14d5e6b3c Mon Sep 17 00:00:00 2001 From: Nima Arefi Date: Sat, 19 Dec 2020 20:37:52 +0330 Subject: [PATCH 2/2] fix: update README.md --- packages/after.js/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()}