Fix pressure units on indoor summary

This commit is contained in:
2024-03-15 01:37:11 +00:00
parent 24cf0af49e
commit 7d95bfc27a

View File

@@ -2,7 +2,7 @@
import { ref, watch } from 'vue';
import { createIndoorStore } from '@/stores/indoorStore';
import ReadingsAggregate from '@/models/environment/readingsAggregate';
import { ConvertPascalToInchesOfMercury } from '@/pressureConverter';
import { ConvertMillibarToInchesOfMercury } from '@/pressureConverter';
import { ConvertCToF } from '@/temperatureConverter';
const props = defineProps({
@@ -56,9 +56,9 @@
</tr>
<tr>
<td class="reading-summary-header">Pressure</td>
<td>{{ ConvertPascalToInchesOfMercury(readingAggregates!.minimumPressure).toFixed(2) }}"</td>
<td>{{ ConvertPascalToInchesOfMercury(readingAggregates!.averagePressure).toFixed(2) }}"</td>
<td>{{ ConvertPascalToInchesOfMercury(readingAggregates!.maximumPressure).toFixed(2) }}"</td>
<td>{{ ConvertMillibarToInchesOfMercury(readingAggregates!.minimumPressure).toFixed(2) }}"</td>
<td>{{ ConvertMillibarToInchesOfMercury(readingAggregates!.averagePressure).toFixed(2) }}"</td>
<td>{{ ConvertMillibarToInchesOfMercury(readingAggregates!.maximumPressure).toFixed(2) }}"</td>
</tr>
</tbody>
</table>