mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: show TextPage even if user is not logged in
This commit is contained in:
parent
7f30d446fa
commit
c9dc6e58ea
@ -48,7 +48,8 @@ export default function App() {
|
|||||||
if (location.pathname === '/login') navigate('/home')
|
if (location.pathname === '/login') navigate('/home')
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
setIsAuthenticated(false)
|
setIsAuthenticated(false)
|
||||||
if (location.pathname !== '/login') navigate('/home')
|
const pathname = location.pathname
|
||||||
|
if (!['/login', '/tos', '/faq', '/privacy'].includes(pathname)) navigate('/home')
|
||||||
})
|
})
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
@ -539,23 +539,23 @@ msgid ""
|
|||||||
"another"
|
"another"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/App.tsx:100
|
#: assets/App.tsx:101
|
||||||
msgid "TOS"
|
msgid "TOS"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/App.tsx:101
|
#: assets/App.tsx:102
|
||||||
msgid "Privacy Policy"
|
msgid "Privacy Policy"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/App.tsx:102
|
#: assets/App.tsx:103
|
||||||
msgid "FAQ"
|
msgid "FAQ"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/App.tsx:104
|
#: assets/App.tsx:105
|
||||||
msgid "Documentation"
|
msgid "Documentation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/App.tsx:107
|
#: assets/App.tsx:108
|
||||||
#, javascript-format
|
#, javascript-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"${ ProjectLink } is an open source project distributed under the ${ "
|
"${ ProjectLink } is an open source project distributed under the ${ "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user