diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index 3e47f23..1d8d2c0 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -164,21 +164,19 @@ export default { } }, watch: { - amountCrystals(CrystalsCount) { + async amountCrystals(CrystalsCount) { if (CrystalsCount >= 1) { this.amountSaveCrystals = CrystalsCount - setTimeout(async () => { - try { + try { await GetPercentageSteps(this.amountSaveCrystals) .then((response) => { this.PercentageGameSteps = response console.log(response) }) - } - catch (e) { + } + catch (e) { console.error('Error in Percantage', e) - } - }, 1500) + } } } },