@ledvance/ui-biz-bundle 1.1.113 → 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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.113",
7
+ "version": "1.1.114",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -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.action }}
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
 
@@ -69,7 +69,7 @@ const EnergyModal = (props: EnergyModalProps) => {
69
69
 
70
70
  useUpdateEffect(() =>{
71
71
  state.energyData = cloneDeep(props.energyData)
72
- }, [props.energyData])
72
+ }, [JSON.stringify(props.energyData)])
73
73
 
74
74
  const styles = StyleSheet.create({
75
75
  popupTip: {