Skip to content

Commit

Permalink
Refactor RestakingDropdown filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shibatales committed Feb 8, 2024
1 parent 0b24bfc commit f3f3134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modals/ManageStaking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ const ManageStaking = (props: { isOpen: boolean; }) => {
const RestakingDropdown = memo(() => {
const list = allTheCores.current
.map(core => ({ id: core.key, userStaked: totalUserStakedData[core.key], name: core.metadata.name }) as SelectedCoreInfo)
.filter(core => core.userStaked && !core.userStaked.isZero());
.filter(core => core.userStaked && core.userStaked.gt(0));

return <Dropdown initialValue={(initialSelectedCore.current?.metadata as SelectedCoreInfo)?.name as string} currentValue={selectedCoreInfo} list={list} onSelect={handleSelect} />;
});
Expand Down

0 comments on commit f3f3134

Please sign in to comment.