restore password error fix

This commit is contained in:
merelendor 2023-11-30 17:55:59 +03:00
parent e6a9301f4e
commit a299a93b0b

View File

@ -59,12 +59,12 @@ WrappedApp.getInitialProps = async (props) =>
const { req } = props.ctx;
let observer = true;
if(req.url.indexOf("offstage") > -1)
if(req !== undefined && req.url !== null && req.url.indexOf("offstage") > -1)
{
observer = false;
}
if(req.cookies !== undefined && req.cookies.observer !== undefined && req.cookies.observer === "true")
if(req !== undefined && req.cookies !== undefined && req.cookies.observer !== undefined && req.cookies.observer === "true")
{
observer = false;
}