diff --git a/assets/js/components/Battery/BatterySettingsModal.vue b/assets/js/components/Battery/BatterySettingsModal.vue index 8b000d597..9525a1cad 100644 --- a/assets/js/components/Battery/BatterySettingsModal.vue +++ b/assets/js/components/Battery/BatterySettingsModal.vue @@ -247,7 +247,7 @@ :current-limit="batteryGridChargeLimit" :smart-cost-type="smartCostType" :currency="currency" - :tariff="forecast?.grid" + :tariff="gridChargeTariff" :possible="gridChargePossible" /> @@ -315,6 +315,12 @@ export default defineComponent({ gridChargePossible() { return this.controllable && this.isModalVisible && this.smartCostAvailable; }, + gridChargeTariff() { + if (this.smartCostType === SMART_COST_TYPE.CO2) { + return this.forecast?.co2; + } + return this.forecast?.grid; + }, bufferOptions() { const options = []; for (let i = 100; i >= 5; i -= 5) {