1
0
Fork 0

fix: follow the happy path

This commit is contained in:
kolaente 2023-04-11 18:40:22 +02:00
parent 367459edd2
commit e3e4b8a563
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -21,11 +21,11 @@ export function useRedirectToLastVisited() {
function redirectIfSaved() {
const lastRoute = getLastVisitedRoute()
if (lastRoute) {
return router.push(lastRoute)
if (!lastRoute) {
return router.push({name: 'home'})
}
return router.push({name: 'home'})
return router.push(lastRoute)
}
return {