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 {
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user