fix culture exception
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/AdvancedSendOptionsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/AdvancedSendOptionsViewModel.cs
@@ -46,7 +46,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
private void OnNext()
{
_transactionInfo.CustomFeeRate =
- decimal.TryParse(CustomFee, NumberStyles.AllowDecimalPoint, new CultureInfo("en-US"), out var customFee)
+ decimal.TryParse(CustomFee, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var customFee)
? new FeeRate(customFee)
: FeeRate.Zero;
@@ -62,7 +62,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
return;
}
- if (!decimal.TryParse(customFeeString, NumberStyles.AllowDecimalPoint, new CultureInfo("en-US"), out var value))
+ if (!decimal.TryParse(customFeeString, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var value))
{
errors.Add(ErrorSeverity.Error, "The entered fee is not valid.");
return;

fix culture exception