From 3695f9b17c2638abecceb910ad92146a62f7c447 Mon Sep 17 00:00:00 2001 From: Alexander Harding <2166114+aeharding@users.noreply.github.com> Date: Sun, 12 May 2024 17:13:51 -0500 Subject: [PATCH] Fix m/s wind speed value not persisting (#150) Resolves #149 --- src/features/user/storage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/user/storage.ts b/src/features/user/storage.ts index 38a6c71..3842cb6 100644 --- a/src/features/user/storage.ts +++ b/src/features/user/storage.ts @@ -174,7 +174,8 @@ export function getSpeedUnit(): SpeedUnit { typeof savedValue !== "string" || (savedValue !== SpeedUnit.KPH && savedValue !== SpeedUnit.Knots && - savedValue !== SpeedUnit.MPH) + savedValue !== SpeedUnit.MPH && + savedValue !== SpeedUnit.mps) ) return DEFAULT_SPEED_UNIT;