Skip to content

Commit

Permalink
chore(fix): fix validator list items
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Bulat committed Oct 24, 2023
1 parent 78633a2 commit 13b3f95
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/library/ValidatorList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,10 @@ export const ValidatorListInner = ({
}
};

// get validators to render
let listValidators = [];

// get throttled subset or entire list
if (!disableThrottle) {
listValidators = validators.slice(pageStart).slice(0, batchEnd);
} else {
listValidators = validators;
}
const listValidators = disableThrottle
? validators
: validators.slice(pageStart).slice(0, ListItemsPerPage);

// if in modal, handle resize
const maybeHandleModalResize = () => {
Expand Down

0 comments on commit 13b3f95

Please sign in to comment.