{{
- typeof data[key] === "string"
- ? data[key]
- : isNaN(data[key])
+ typeof singleVal === "string"
+ ? singleVal
+ : isNaN(singleVal)
? null
- : data[key].toFixed(2)
+ : singleVal.toFixed(2)
}}
{{ standard.unit }}
@@ -45,6 +45,7 @@ const props = defineProps({
},
});
const key = computed(() => Object.keys(props.data)[0]);
+const singleVal = computed(() => props.data[key.value]);