From 21b7695ecbf01849a56cfdb5910c28db257dffbb Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 21 Jan 2024 12:05:49 +0300 Subject: [PATCH] refactor code, changed variables --- luckydiamond/src/pages/games-pages/SapergamePage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index 66edfb4..438bfbc 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -225,11 +225,12 @@ export default { let DepositDiamonds = this.amountSaveDeposit const X_Cordinates = value[this.gamesCircle] + let findIndex, findX, findY if (X_Cordinates >= 5) { - const findIndex = Math.ceil(X_Cordinates / 5) * 5 - const findY = Math.ceil(findIndex / 5) - const findX = X_Cordinates % 5 + findIndex = Math.ceil(X_Cordinates / 5) * 5 + findY = Math.ceil(findIndex / 5) + findX = X_Cordinates % 5 console.log(findX, findY) }