Skip to content

Commit

Permalink
Another fix/twak.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZermattChris committed Apr 17, 2023
1 parent f4b96a5 commit b1f43f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,8 @@ export default {
if (confirm("DEBUG: Clear all stored data?") !== true) return
localStorage.clear()
sessionStorage.clear() // this should reset all of the Stripe data as well.
window.localStorage.clear()
window.sessionStorage.clear() // this should reset all of the Stripe data as well.
if (this.$route.name !== 'Start') {
this.$router.push('/') // return to step 1
Expand Down
4 changes: 4 additions & 0 deletions src/components/ResetDataButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export default {
this.$store.dispatch('clearSlotsPassengers')
window.localStorage.clear()
window.sessionStorage.clear() // this should reset all of the Stripe data as well.
//return to the Start page and reload. Fingers crossed.
if (this.$route.name !== 'Start') {
this.$router.push('/') // return to step 1
Expand Down

0 comments on commit b1f43f4

Please sign in to comment.