Skip to content

Commit

Permalink
fix: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaa77 committed Dec 19, 2020
1 parent a86c50c commit 4943651
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/after.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
};
Expand Down Expand Up @@ -542,9 +541,7 @@ export default class Document extends React.Component {
return (
<html {...htmlAttrs}>
<head>
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta charSet="utf-8" />
<title>Welcome to the Afterparty</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{helmet.title.toComponent()}
{helmet.meta.toComponent()}
Expand Down

0 comments on commit 4943651

Please sign in to comment.