Skip to content

Commit

Permalink
fix: duplicate kele stake info in eth detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
qwang1113 committed May 16, 2024
1 parent ff53e1e commit 491eed1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kit/src/hooks/useOverview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ export const useTokenPositionInfo = ({
items: [],
};
}
const { totalBalance, keleStakingBalance, items } = result;
const { totalBalance, keleStakingBalance, items: assets } = result;

const items = [...assets];

if (new B(keleStakingBalance)?.gt(0)) {
items.push({
Expand Down

0 comments on commit 491eed1

Please sign in to comment.