Skip to content

Commit

Permalink
Format moisture value to two digits
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Nordhoff committed Aug 4, 2023
1 parent 62c0d57 commit 6536d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SensorTooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const SensorTooltip = ({ record }: { record: SensorInfo }) => {
<>
<div className={styles.header}>
<Text className={styles.title}>
Feuchte: {record.soil_moisture} %
Feuchte: {Number(record.soil_moisture).toFixed(2)} %
</Text>
</div>
<div className={styles.inner}>
Expand Down

0 comments on commit 6536d57

Please sign in to comment.