refactor logic for save array

This commit is contained in:
Kostya
2024-01-20 20:28:21 +03:00
parent 65e59d0100
commit e360977411
2 changed files with 3 additions and 2 deletions

View File

@@ -250,6 +250,7 @@ input[type="number"]::-webkit-outer-spin-button {
font-family: Montserrat Alternates;
font-size: 12px;
padding: 6px 16px;
margin-right: 8px;
}
/* Saper Game */

View File

@@ -170,8 +170,8 @@ export default {
try {
await GetPercentageSteps(this.amountSaveCrystals)
.then((response) => {
this.PercentageGameSteps = response
console.log(response)
const arrayWithOutInfinity = response.filter(item => item !== 'Infinity' )
this.PercentageGameSteps = arrayWithOutInfinity
})
}
catch (e) {