Update WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelSelectionViewModel.cs
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelSelectionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelSelectionViewModel.cs
@@ -111,12 +111,10 @@ public partial class LabelSelectionViewModel : ViewModelBase
var pockets = new List<Pocket>();
foreach (var p in privacyRankedPockets)
- {
- if (pockets.Sum(x => x.Amount) < targetAmount)
{
pockets.Add(p);
- }
- else
+
+ if (pockets.Sum(x => x.Amount) >= targetAmount)
{
break;
}

Update WalletWasabi.Fluent/ViewModels/Wallets/Send/LabelSelectionViewModel.cs

Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>