From 9a5e25908ff515af114845fefdadc3a39c4541d7 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Tue, 14 Oct 2025 11:06:10 -0600 Subject: [PATCH] =?UTF-8?q?fixed=20some=20instances=20where=20if=20no=20te?= =?UTF-8?q?mp=20unit=20was=20set=20for=20the=20user=20yet=20the=20unit=20d?= =?UTF-8?q?efaulted=20to=20=C2=B0F=20to=20cerrectly=20default=20to=20?= =?UTF-8?q?=C2=B0C=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/BinCardV2.tsx | 6 +++--- src/gate/GateSVG.tsx | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/bin/BinCardV2.tsx b/src/bin/BinCardV2.tsx index 4bfcb4f..a4afc33 100644 --- a/src/bin/BinCardV2.tsx +++ b/src/bin/BinCardV2.tsx @@ -249,9 +249,9 @@ export default function BinCard(props: Props) { noWrap style={{ fontSize: "0.85rem", fontWeight: 650, color: tempColour }}> {display + - (user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_CELSIUS - ? "°C" - : "°F")} + (user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_FAHRENHEIT + ? "°F" + : "°C")} ); }; diff --git a/src/gate/GateSVG.tsx b/src/gate/GateSVG.tsx index 3fc3422..20c46d0 100644 --- a/src/gate/GateSVG.tsx +++ b/src/gate/GateSVG.tsx @@ -249,9 +249,9 @@ export default function GateSVG(props: Props) { {convertFinalTemp(finalTemp).toFixed(2)}° - {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_CELSIUS - ? "C" - : "F"} + {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_FAHRENHEIT + ? "°F" + : "°C"} ); @@ -260,9 +260,9 @@ export default function GateSVG(props: Props) { Ambient: {ambientTemp}° - {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_CELSIUS - ? "C" - : "F"} + {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_FAHRENHEIT + ? "°F" + : "°C"} ); @@ -271,13 +271,13 @@ export default function GateSVG(props: Props) { T1: {innerTemps.t1}° - {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_CELSIUS - ? "C" - : "F"} + {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_FAHRENHEIT + ? "°F" + : "°C"} , T2: {innerTemps.t2}° - {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_CELSIUS - ? "C" - : "F"} + {user.settings.temperatureUnit === pond.TemperatureUnit.TEMPERATURE_UNIT_FAHRENHEIT + ? "°F" + : "°C"} );