fixed value balance in amountdeposit, saper

This commit is contained in:
Kostya
2024-01-21 01:10:55 +03:00
parent 42d5b47a9f
commit 4a1a998366

View File

@@ -177,13 +177,12 @@ export default {
async amountDeposit(DiamondCount) { async amountDeposit(DiamondCount) {
if (DiamondCount >= 1) { if (DiamondCount >= 1) {
try { try {
let balance = 0
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken')) await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
.then((response) => { .then((response) => {
this.balance = response this.balance = response.currentMoney
console.log(balance) console.log(this.balance)
}) })
if (balance >= DiamondCount) { if (this.balance >= DiamondCount) {
this.amountSaveDeposit = DiamondCount this.amountSaveDeposit = DiamondCount
this.ValidationPlay.DiamondValidate = true this.ValidationPlay.DiamondValidate = true
} }