stop unnecessary statistic reqs
This commit is contained in:
parent
0b6e21f721
commit
efcfac5774
@ -158,8 +158,19 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const { currency, amount } = this.selectedInstance
|
const userSelection = this.selectedInstance
|
||||||
this.$store.dispatch('application/setAndUpdateStatistic', { currency, amount })
|
const stateSelection = this.selectedStatistic
|
||||||
|
|
||||||
|
if (
|
||||||
|
!stateSelection ||
|
||||||
|
userSelection.amount !== stateSelection.amount ||
|
||||||
|
userSelection.currency !== stateSelection.currency
|
||||||
|
) {
|
||||||
|
this.$store.dispatch('application/setAndUpdateStatistic', {
|
||||||
|
currency: userSelection.currency,
|
||||||
|
amount: userSelection.amount
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user