We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8bf49 commit a95c335Copy full SHA for a95c335
assets/js/components/SmartCostLimit.vue
@@ -288,17 +288,12 @@ export default {
288
slotHovered(index) {
289
this.activeIndex = index;
290
},
291
- setSelectedSmartCostLimit(limit) {
292
- const nextOption = this.costOptions.find(({ value }) => value >= limit);
293
- if (nextOption) {
294
- this.selectedSmartCostLimit = nextOption.value;
295
- }
296
- },
297
slotSelected(index) {
298
const price = this.slots[index].price;
299
if (price !== undefined) {
300
- this.setSelectedSmartCostLimit(price);
301
- this.saveSmartCostLimit(this.selectedSmartCostLimit);
+ // 3 decimal precision
+ const priceRounded = Math.ceil(price * 1000) / 1000;
+ this.saveSmartCostLimit(priceRounded);
302
}
303
304
changeSmartCostLimit($event) {
0 commit comments