mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
When user is on logged out layouts dont try to return to nav-return
This commit is contained in:
parent
1cd3cf8ba0
commit
21e12750ca
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ export function OmnivoreLogoBase(props: OmnivoreLogoBaseProps): JSX.Element {
|
|||
cursor: 'pointer',
|
||||
}}
|
||||
onClick={(event) => {
|
||||
if (props.href) {
|
||||
router.push(props.href)
|
||||
return
|
||||
}
|
||||
const navReturn = window.localStorage.getItem('nav-return')
|
||||
if (navReturn) {
|
||||
router.push(navReturn)
|
||||
|
|
|
|||
Loading…
Reference in a new issue