asyncdata undefined on mobile
[issue link]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.