fix: Double Redirect After Logout with Expired JWT

This commit is contained in:
Moriz Wahl 2021-09-28 14:27:59 +02:00
parent 3220548ae7
commit a0583cbb50

View File

@ -101,7 +101,7 @@ export default {
.catch(() => {
this.$sidebar.displaySidebar(false)
this.$store.dispatch('logout')
this.$router.push('/login')
if (this.$router.currentRoute.path !== '/login') this.$router.push('/login')
})
},
async updateTransactions(pagination) {