build(deps): update dependencies and update relevant files

This commit is contained in:
sct
2020-12-08 04:14:18 +00:00
parent 2d51efd716
commit 79a352b7b3
37 changed files with 384 additions and 375 deletions

View File

@@ -145,7 +145,7 @@ CoreApp.getInitialProps = async (initialProps) => {
const cookies = parseCookies(ctx);
if (!!cookies.locale) {
if (cookies.locale) {
locale = cookies.locale;
}
}

View File

@@ -65,7 +65,7 @@ Error.getInitialProps = async ({ res, err }): Promise<ErrorProps> => {
// Apologies for how gross ternary is but this is just temporary. Honestly,
// blame the nextjs docs
let statusCode: Undefinable<number>;
if (!!res) {
if (res) {
statusCode = res.statusCode;
} else {
statusCode = err ? err.statusCode : undefined;