Skip to content

Commit

Permalink
fix: no history breaking pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Jan 8, 2025
1 parent 25d1d60 commit ce887ea
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions pages/bank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,24 +206,21 @@ export default function Bank() {
searchTerm={searchTerm}
/>
))}
{activeTab === 'history' &&
(sendTxs.length === 0 ? (
<NoActivityFound />
) : (
<HistoryBox
currentPage={currentPage}
setCurrentPage={setCurrentPage}
address={address ?? ''}
isLoading={isLoading}
sendTxs={sendTxs}
totalPages={totalPages}
txLoading={txLoading}
isError={isError}
refetch={refetchHistory}
skeletonGroupCount={skeletonGroupCount}
skeletonTxCount={skeletonTxCount}
/>
))}
{activeTab === 'history' && (
<HistoryBox
currentPage={currentPage}
setCurrentPage={setCurrentPage}
address={address ?? ''}
isLoading={isLoading}
sendTxs={sendTxs}
totalPages={totalPages}
txLoading={txLoading}
isError={isError}
refetch={refetchHistory}
skeletonGroupCount={skeletonGroupCount}
skeletonTxCount={skeletonTxCount}
/>
)}
</div>
</div>
</div>
Expand Down

0 comments on commit ce887ea

Please sign in to comment.