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) {
if (DiamondCount >= 1) {
try {
let balance = 0
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
.then((response) => {
this.balance = response
console.log(balance)
this.balance = response.currentMoney
console.log(this.balance)
})
if (balance >= DiamondCount) {
if (this.balance >= DiamondCount) {
this.amountSaveDeposit = DiamondCount
this.ValidationPlay.DiamondValidate = true
}