mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
refactor logic for send request
This commit is contained in:
@@ -164,10 +164,9 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
amountCrystals(CrystalsCount) {
|
||||
async amountCrystals(CrystalsCount) {
|
||||
if (CrystalsCount >= 1) {
|
||||
this.amountSaveCrystals = CrystalsCount
|
||||
setTimeout(async () => {
|
||||
try {
|
||||
await GetPercentageSteps(this.amountSaveCrystals)
|
||||
.then((response) => {
|
||||
@@ -178,7 +177,6 @@ export default {
|
||||
catch (e) {
|
||||
console.error('Error in Percantage', e)
|
||||
}
|
||||
}, 1500)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user