fix app.no_session event showing notification on index

This commit is contained in:
SrGooglo 2023-01-13 20:03:16 +00:00
parent fb8876b455
commit 1300d04803

View File

@ -168,7 +168,7 @@ class App extends React.Component {
"app.no_session": async () => {
const location = window.location.pathname
if (location !== "/login" && location !== "/register") {
if (location !== "/" && location !== "/login" && location !== "/register") {
antd.notification.info({
message: "You are not logged in, to use some features you will need to log in.",
btn: <antd.Button type="primary" onClick={() => app.goAuth()}>Login</antd.Button>,