diff --git a/android/src/main/java/dev/matinzd/healthconnect/utils/HealthConnectUtils.kt b/android/src/main/java/dev/matinzd/healthconnect/utils/HealthConnectUtils.kt index 6a3219e..f87b3b7 100644 --- a/android/src/main/java/dev/matinzd/healthconnect/utils/HealthConnectUtils.kt +++ b/android/src/main/java/dev/matinzd/healthconnect/utils/HealthConnectUtils.kt @@ -287,8 +287,8 @@ fun getEnergyFromJsMap(energyMap: ReadableMap?): Energy { val value = energyMap.getDouble("value") return when (energyMap.getString("unit")) { - "kilojoules" -> Energy.kilocalories(value) - "kilocalories" -> Energy.kilojoules(value) + "kilojoules" -> Energy.kilojoules(value) + "kilocalories" -> Energy.kilocalories(value) "joules" -> Energy.joules(value) "calories" -> Energy.calories(value) else -> Energy.calories(value)