diff --git a/assets/js/components/ChargingPlans/Preview.vue b/assets/js/components/ChargingPlans/Preview.vue index 04a9f800b..e954211e5 100644 --- a/assets/js/components/ChargingPlans/Preview.vue +++ b/assets/js/components/ChargingPlans/Preview.vue @@ -111,7 +111,7 @@ export default defineComponent({ : this.fmtPricePerKWh(value, this.currency); }, activeSlot(): Slot | null { - return this.activeIndex ? this.slots[this.activeIndex] : null; + return this.activeIndex !== null ? this.slots[this.activeIndex] : null; }, activeSlotName(): string | null { if (this.activeSlot) { diff --git a/assets/js/components/Tariff/TariffChart.vue b/assets/js/components/Tariff/TariffChart.vue index ffe735d62..f272be97f 100644 --- a/assets/js/components/Tariff/TariffChart.vue +++ b/assets/js/components/Tariff/TariffChart.vue @@ -116,9 +116,6 @@ export default { }); return sum / count; }, - activeSlot() { - return this.activeIndex !== null ? this.slots[this.activeIndex] : null; - }, }, methods: { hoverSlot(index: number | null) {