fixed bug with crystal saper

This commit is contained in:
Kostya
2024-02-12 00:40:39 +03:00
parent 20e0baefa7
commit 904ab834b7

View File

@@ -421,7 +421,6 @@ export default {
created() { created() {
const AUTHTOKEN = GetCookie('AUTHTOKEN') const AUTHTOKEN = GetCookie('AUTHTOKEN')
const SEARCHTOKEN = GetCookie('SearchToken') const SEARCHTOKEN = GetCookie('SearchToken')
this.amountCrystals = 5
if (AUTHTOKEN !== null && SEARCHTOKEN !== null) { if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
try { try {
@@ -451,6 +450,9 @@ export default {
this.ValidationPlay.startGame = false this.ValidationPlay.startGame = false
}, 2000) }, 2000)
} }
else {
this.amountCrystals = 5
}
}) })
this.getBalanceUser() this.getBalanceUser()
} }
@@ -458,6 +460,9 @@ export default {
console.error('Error in GetData', e) console.error('Error in GetData', e)
} }
} }
else {
this.amountCrystals = 5
}
}, },
mounted() { mounted() {
eventBus.on('Updatebalance-saper', () => { eventBus.on('Updatebalance-saper', () => {