diff --git a/src/components/AccountTokensBanner.tsx b/src/components/AccountTokensBanner.tsx index 0e44229..9085b40 100644 --- a/src/components/AccountTokensBanner.tsx +++ b/src/components/AccountTokensBanner.tsx @@ -278,10 +278,16 @@ const AccountTokensBanner = (props: IAccountTokensBanner & PropsFromRedux) => { ) } - {accountTokensDataTanstack?.pagination?.totalPages && accountTokensDataTanstack?.pagination?.totalPages > 1 && showPagination && + {(accountTokensDataTanstack && accountTokensDataTanstack?.pagination?.totalPages > 1) && showPagination && ( <>
- setPage(page)} count={accountTokensDataTanstack?.pagination?.totalPages} variant="outlined" color="primary" /> + setPage(page)} + count={accountTokensDataTanstack?.pagination?.totalPages} + variant="outlined" + color="primary" + />
{/* { paginationTotalRecords && @@ -290,7 +296,7 @@ const AccountTokensBanner = (props: IAccountTokensBanner & PropsFromRedux) => { } */} - } + )} ) }