fix: follow the happy path
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2023-04-11 18:40:22 +02:00
parent 20660564c1
commit 34182b8bbb
Signed by: 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 {