From bb9005e77e28d409836b9284f00fae88bf5f3a47 Mon Sep 17 00:00:00 2001 From: Nicholas Logozzo Date: Thu, 7 Sep 2023 10:41:27 -0400 Subject: [PATCH] Update CurrencyConverterDialog.cs --- NickvisionMoney.GNOME/Controls/CurrencyConverterDialog.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NickvisionMoney.GNOME/Controls/CurrencyConverterDialog.cs b/NickvisionMoney.GNOME/Controls/CurrencyConverterDialog.cs index bb52638ea..78702436f 100644 --- a/NickvisionMoney.GNOME/Controls/CurrencyConverterDialog.cs +++ b/NickvisionMoney.GNOME/Controls/CurrencyConverterDialog.cs @@ -135,6 +135,7 @@ public async Task PresentAsync() /// private async Task OnAmountRowChangedAsync() { + _sourceAmountRow.RemoveCssClass("error"); if (string.IsNullOrEmpty(_sourceAmountRow.GetText())) { _resultAmountRow.SetText(""); @@ -150,6 +151,11 @@ private async Task OnAmountRowChangedAsync() _resultAmountRow.SetText(res.ResultAmount.ToAmountString(CultureInfo.CurrentCulture, _useNativeDigits, false)); } } + else + { + _sourceAmountRow.AddCssClass("error"); + _resultAmountRow.SetText(""); + } _loadingBox.SetVisible(false); } }