Skip to content

Commit

Permalink
fix(packages): updates to the latest version of biketag(3.3.3) to res…
Browse files Browse the repository at this point in the history
…olve issues found in testing
  • Loading branch information
KenEucker committed Jan 24, 2024
1 parent 1e6a3b7 commit a832641
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "biketag-vue",
"version": "3.3.2",
"version": "3.3.3",
"license": "AGPL-3.0-or-later",
"author": "Ken Eucker",
"bugs": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"@vueuse/head": "^2.0.0",
"ajv": "^8.12.0",
"autoprefixer": "^10.4.17",
"biketag": "^3.3.2",
"biketag": "^3.3.3",
"bootstrap": "^5.3.2",
"bootstrap-vue-next": "^0.15.5",
"crypto-js": "^4.2.0",
Expand Down
9 changes: 7 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,22 @@ function checkForNewBikeTagPost() {
async function created() {
const initResults = []
/// Set it first thing
await router.isReady()
const _gameIsSet = store.gameName?.length !== 0
if (_gameIsSet && router.currentRoute.value.name !== 'landing') {
const routeIsRoot = router.currentRoute.value.path === '/'
const routeIsLanding = router.currentRoute.value.name === 'Landing'
if (_gameIsSet && (!routeIsLanding || routeIsRoot)) {
const game = await store.setGame().catch((err) => {
debug('view::data-init', err)
// router.push('/landing')
})
gameIsSet.value = true
const routeIsHome = routeIsRoot ? true : router.currentRoute.value?.name === 'Home'
initResults.push(await store.fetchCurrentBikeTag())
if (game) {
if (game && routeIsHome) {
await router.push({ name: 'Home' })
}
Expand Down

0 comments on commit a832641

Please sign in to comment.