Skip to content

Commit

Permalink
Fix CoinSelectionService.GetAvailableUTXOsAsync method to display UTX…
Browse files Browse the repository at this point in the history
…Os correctly in the UTXOSelectorModal (#391)
  • Loading branch information
tamaragmartin authored Aug 12, 2024
1 parent 3036bfd commit 1f43c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/CoinSelectionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public async Task<List<UTXO>> GetAvailableUTXOsAsync(DerivationStrategyBase deri
public async Task<List<UTXO>> GetAvailableUTXOsAsync(DerivationStrategyBase derivationStrategy, CoinSelectionStrategy strategy, int limit, long amount, long closestTo)
{
UTXOChanges utxoChanges;
if (Constants.NBXPLORER_ENABLE_CUSTOM_BACKEND)
if (Constants.NBXPLORER_ENABLE_CUSTOM_BACKEND && limit > 0)
{
utxoChanges = await _nbXplorerService.GetUTXOsByLimitAsync(derivationStrategy, strategy, limit, amount, closestTo);
}
Expand Down

0 comments on commit 1f43c8c

Please sign in to comment.