mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
build(deps): update dependencies and update relevant files
This commit is contained in:
@@ -145,7 +145,7 @@ CoreApp.getInitialProps = async (initialProps) => {
|
||||
|
||||
const cookies = parseCookies(ctx);
|
||||
|
||||
if (!!cookies.locale) {
|
||||
if (cookies.locale) {
|
||||
locale = cookies.locale;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user