Skip to content

Commit

Permalink
fix: [lw-12326] fix permanent loader on activities page
Browse files Browse the repository at this point in the history
  • Loading branch information
vetalcore committed Feb 13, 2025
1 parent 85f7456 commit 12d1482
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cardano/src/wallet/lib/tx-history-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ export const createTxHistoryLoader = (

const initialPage = (storedHistory: Cardano.HydratedTx[]): LoadedTxHistory => {
fullLocalHistory = [...storedHistory].reverse();
// Always try to fetch more for the first page. The first page is limited to 10 elements and the viewPort height might fit more
mightHaveMore = true;
// Always try to fetch more for the first page (unless there are less items then minimumPageSize value).
// The first page is limited to 10 elements and the viewPort height might fit more
mightHaveMore = fullLocalHistory.length >= minimumPageSize;
emittedHistory = fullLocalHistory.slice(0, minimumPageSize);
return {
transactions: emittedHistory,
Expand Down

0 comments on commit 12d1482

Please sign in to comment.