Skip to content

Commit

Permalink
fix(ui): display welcome always
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed May 3, 2023
1 parent 93af47f commit c94b744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@
this.$store.dispatch("flow/findFlows", {limit: 1})
.then(flows => {
this.$store.commit("flow/setOverallTotal", flows.total);
if (flows.total === 0 && this.$route.name === "home" && localStorage.getItem("tourDoneOrSkip") !== "true") {
if (flows.total === 0 && this.$route.name === "home") {
this.$router.push({name: "welcome"});
}
});
},
},
watch: {
$route(to) {
if (to.name === "home" && localStorage.getItem("tourDoneOrSkip") !== "true" && this.overallTotal === 0) {
if (to.name === "home" && this.overallTotal === 0) {
this.$router.push({name: "welcome"});
}
}
Expand Down

0 comments on commit c94b744

Please sign in to comment.