refactor logic for request

This commit is contained in:
Kostya
2024-01-20 23:11:02 +03:00
parent 5e5a224157
commit 7bb8d4d504

View File

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