mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
fixed value balance in amountdeposit, saper
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user