Skip to content

Commit

Permalink
Fix available deposits to bond
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Mar 13, 2024
1 parent bc76ab8 commit d445d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/bond-more-deposit-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function BondMoreDepositModal({
isOpen: boolean;
onClose?: () => void;
}) {
const { deposits, stakedDeposits, calcExtraPower } = useStaking();
const { deposits, calcExtraPower } = useStaking();
const { activeChain } = useApp();

const [checkedDeposits, setCheckedDeposits] = useState<number[]>([]);
Expand All @@ -35,7 +35,7 @@ export default function BondMoreDepositModal({
[deposits, commission, checkedDeposits, calcExtraPower]
);

const availableDeposits = deposits.filter(({ id }) => !stakedDeposits.includes(id));
const availableDeposits = deposits.filter(({ inUse }) => !inUse);
const { nativeToken } = getChainConfig(activeChain);

const handleBond = useCallback(async () => {
Expand Down

0 comments on commit d445d75

Please sign in to comment.