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

@@ -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) {