mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
refactor logic for request
This commit is contained in:
@@ -171,8 +171,12 @@ export default {
|
||||
try {
|
||||
await GetPercentageSteps(this.amountSaveCrystals)
|
||||
.then((response) => {
|
||||
const arrayWithOutInfinity = response.filter(item => item !== 'Infinity' )
|
||||
this.PercentageGameSteps = arrayWithOutInfinity
|
||||
response.forEach((item) => {
|
||||
if (item !== 'Infinity' && item !== '-Infinity') {
|
||||
this.PercentageGameSteps.push(Number(item))
|
||||
console.log(this.PercentageGameSteps)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user