mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix app.no_session
event showing notification on index
This commit is contained in:
parent
fb8876b455
commit
1300d04803
@ -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>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user