CurrencyEntryBox - fix divide by zero crash
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
@@ -114,6 +114,11 @@ public class CurrencyEntryBox : TextBox
private decimal FiatToBitcoin(decimal fiatValue)
{
+ if (ConversionRate == 0m)
+ {
+ return 0m;
+ }
+
return fiatValue / ConversionRate;
}

CurrencyEntryBox - fix divide by zero crash