refactor logic for checking maxCircles

This commit is contained in:
Kostya
2024-01-21 12:06:46 +03:00
parent 21b7695ecb
commit 1dc5566597

View File

@@ -217,7 +217,9 @@ export default {
},
flippedCards: {
async handler(value) {
if (this.gamesCircle < this.amountSaveCrystals) {
const maxCircles = 25 - this.amountSaveCrystals
if (this.gamesCircle < maxCircles) {
console.log(value)
// this.offEventPointers = false