Skip to content

Commit

Permalink
fix: minor list optimizations and strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Nov 6, 2024
1 parent 735c8ca commit a5c2286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/staking/app/mystakes/modules/StakedNodesModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const sortAndGroupStakes = (nodes: Array<Stake>, blockHeight: number) =>

readyToExit.sort((a, b) => (a.requested_unlock_height ?? 0) - (b.requested_unlock_height ?? 0));

return [...decommissioning, ...readyToExit, ...exiting, ...running, ...other];
return [decommissioning, readyToExit, exiting, running, other].flat(1);
};

export function StakedNodesWithAddress({ address }: { address: Address }) {
Expand Down
2 changes: 1 addition & 1 deletion apps/staking/app/stake/[contract]/NodeStaking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function NodeStaking({ contract }: { contract: string }) {

const node = useMemo(() => {
return data?.nodes?.find((node) => areHexesEqual(node.contract, contract));
}, [data]);
}, [data, contract]);

return isLoading ? (
<Loading />
Expand Down
2 changes: 1 addition & 1 deletion apps/staking/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@
"typeDescription": "The node type",
"solo": "Single Contributor Node",
"multi": "Multi Contributor Node",
"soloDescription": "A single contributor node is a node has the full stake amount contributed by the node operator.",
"soloDescription": "A single contributor node is a node that has the full stake amount contributed by the node operator.",
"multiDescription": "A multi contributor node is a node that has a stake amount contributed by multiple contributors.",
"registerButton": {
"text": "View",
Expand Down

0 comments on commit a5c2286

Please sign in to comment.