From c99cca7f87ce76604b912264f3b3b46122a19e3e Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Sat, 7 Sep 2024 06:30:27 +0300 Subject: [PATCH] Fix bug where clearing out currency value field does not clear out BTC value field --- Sources/SatsPrice/SatsViewModel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/SatsPrice/SatsViewModel.swift b/Sources/SatsPrice/SatsViewModel.swift index e3b10fa..2fd0d6f 100644 --- a/Sources/SatsPrice/SatsViewModel.swift +++ b/Sources/SatsPrice/SatsViewModel.swift @@ -134,10 +134,12 @@ class SatsViewModel: ObservableObject { satsStringInternal = sats.formatString() } else { satsStringInternal = "" + btcStringInternal = "" currencyValueStringInternal = "" } } else { satsStringInternal = "" + btcStringInternal = "" currencyValueStringInternal = "" } }