Skip to content

Commit

Permalink
Fix usd amount in max
Browse files Browse the repository at this point in the history
  • Loading branch information
nopara73 committed Dec 21, 2018
1 parent b69a2b2 commit 1e62905
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public SendTabViewModel(WalletViewModel walletViewModel)
}
}
if (Money.TryParse(amount, out Money amountBtc))
if (Money.TryParse(amount.TrimStart('~', ' '), out Money amountBtc))
{
SetAmountWatermarkAndToolTip(amountBtc);
}
Expand Down Expand Up @@ -434,7 +434,7 @@ private void SetFees(AllFeeEstimate allFeeEstimate, int feeTarget)
}
else
{
if (Money.TryParse(Amount, out Money amount))
if (Money.TryParse(Amount.TrimStart('~', ' '), out Money amount))
{
var inNum = 0;
var amountSoFar = Money.Zero;
Expand Down Expand Up @@ -465,7 +465,7 @@ private void SetFees(AllFeeEstimate allFeeEstimate, int feeTarget)
}
else
{
if (Money.TryParse(Amount, out Money amount) && amount.Satoshi != 0)
if (Money.TryParse(Amount.TrimStart('~', ' '), out Money amount) && amount.Satoshi != 0)
{
FeePercentage = 100 * (decimal)BtcFee.Satoshi / amount.Satoshi;
}
Expand Down

0 comments on commit 1e62905

Please sign in to comment.