refactor logic for get winning-amount

This commit is contained in:
Kostya
2024-01-25 19:49:44 +03:00
parent 706ccf5f79
commit bf1d593117

View File

@@ -350,7 +350,10 @@ export default {
try { try {
await GetWinningAmount({ SearchToken: GetCookie('SearchToken'), AuthToken: GetCookie('AUTHTOKEN') }) await GetWinningAmount({ SearchToken: GetCookie('SearchToken'), AuthToken: GetCookie('AUTHTOKEN') })
setTimeout(() => { setTimeout(() => {
window.location.reload() this.winningAmount = 0
this.flippedCards = []
this.offEventPointers = false
this.gameStart = false
}, 1000) }, 1000)
} }
catch (e) { catch (e) {