Hello,
I have a strange issue after publishing my site. Works fine on destktop, but doesn't work on mobile. It gives the error "Cannot read property 'totalCount of undefined'. Which references to this:
async asyncData({ app }) {
let { data } = await app.$axios.get(`/bets/all`)
return {
bets: {
recent: data.recent,
bestwins: data.bestwins,
leaderboard: data.leaderboard,
totalCount: data.totalCount,
totalWon: data.totalWon
}
}
},
I'm absolutely clueless on why this happens. I've used nuxt generate to host the site. First time doing it that way as I usually use a server.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2372">#c2372</a>)</em></sub></div>