Skip to content

Commit

Permalink
Fix UI not showing more than 10 elements (#392)
Browse files Browse the repository at this point in the history
* Fix UI not showing more than 10 elements

* removed comment breaking the tag
  • Loading branch information
RodriFS authored Aug 12, 2024
1 parent 1f43c8c commit 59c8f0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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 && limit > 0)
if (Constants.NBXPLORER_ENABLE_CUSTOM_BACKEND)
{
utxoChanges = await _nbXplorerService.GetUTXOsByLimitAsync(derivationStrategy, strategy, limit, amount, closestTo);
}
Expand Down Expand Up @@ -218,4 +218,4 @@ public async Task<List<UTXO>> GetUTXOsByOutpointAsync(DerivationStrategyBase der
utxos.RemoveDuplicateUTXOs();
return utxos.Confirmed.UTXOs.Where(utxo => outPoints.Contains(utxo.Outpoint)).ToList();
}
}
}
3 changes: 2 additions & 1 deletion src/Shared/UTXOSelectorModal.razor
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
@bind-SelectedRows="SelectedUTXOs"
Responsive
FixedHeader
PageSize="1000000000"
FixedHeaderDataGridMaxHeight="400px"
>
<DataGridMultiSelectColumn Width="30px"></DataGridMultiSelectColumn>
Expand Down Expand Up @@ -294,4 +295,4 @@
_limit = limit;
await OnChange();
}
}
}

0 comments on commit 59c8f0c

Please sign in to comment.