@ledvance/ui-biz-bundle 1.1.112 → 1.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -235,7 +235,7 @@ const EnergyConsumptionDetail = (props: {theme?: ThemeType}) => {
|
|
|
235
235
|
<Image
|
|
236
236
|
source={res.co2Icon}
|
|
237
237
|
resizeMode="contain"
|
|
238
|
-
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.
|
|
238
|
+
style={{ height: cx(20), width: cx(20), tintColor: props.theme?.button.primary }}
|
|
239
239
|
/>
|
|
240
240
|
</TouchableOpacity>
|
|
241
241
|
</View>
|
|
@@ -317,7 +317,7 @@ const EnergyConsumptionDetail = (props: {theme?: ThemeType}) => {
|
|
|
317
317
|
...energyData,
|
|
318
318
|
price: exchangeNumber(energyData.price)
|
|
319
319
|
})
|
|
320
|
-
state.price = energyData.price
|
|
320
|
+
state.price = energyData.price || '0'
|
|
321
321
|
state.unit = energyData.unit
|
|
322
322
|
}
|
|
323
323
|
}}
|
|
@@ -129,7 +129,7 @@ const EnergyConsumptionPage = (props: {theme?: ThemeType}) => {
|
|
|
129
129
|
const res = await NativeApi.getJson(devId, 'energiepreise')
|
|
130
130
|
if (res.success && res.data) {
|
|
131
131
|
const v = JSON.parse(res.data)
|
|
132
|
-
state.price = v?.price
|
|
132
|
+
state.price = v?.price || '0'
|
|
133
133
|
state.unit = v?.unit
|
|
134
134
|
} else {
|
|
135
135
|
state.price = '0'
|
|
@@ -138,7 +138,7 @@ const EnergyConsumptionPage = (props: {theme?: ThemeType}) => {
|
|
|
138
138
|
|
|
139
139
|
const updateEnergyData = (data: EnergyData) => {
|
|
140
140
|
updatePrice(devId, data).then()
|
|
141
|
-
state.price = data.price
|
|
141
|
+
state.price = data.price || '0'
|
|
142
142
|
state.unit = data.unit
|
|
143
143
|
}
|
|
144
144
|
|