Skip to content

Commit

Permalink
fixed data not being transfer to some modals
Browse files Browse the repository at this point in the history
  • Loading branch information
Ran Cohen committed Oct 19, 2022
1 parent 078aaf1 commit 01dca4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const V3EarningTableMenuMain = memo(
const { pushModal } = useModal();

const handleWithdrawClick = useCallback(() => {
pushModal({ modalName: ModalNames.V3Withdraw, data: holding });
pushModal({ modalName: ModalNames.V3Withdraw, data: { holding } });
}, [holding, pushModal]);

const handleBonusClick = useCallback(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/elements/earn/portfolio/v3/holdings/V3HoldingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const V3HoldingPage = () => {
onClick={() =>
pushModal({
modalName: ModalNames.DepositV3,
data: pool,
data: { pool },
})
}
size={ButtonSize.ExtraSmall}
Expand Down Expand Up @@ -248,7 +248,7 @@ export const V3HoldingPage = () => {
onClick={() =>
pushModal({
modalName: ModalNames.V3ManagePrograms,
data: holding,
data: { holding },
})
}
>
Expand All @@ -272,7 +272,7 @@ export const V3HoldingPage = () => {
onClick={() =>
pushModal({
modalName: ModalNames.V3Withdraw,
data: holding,
data: { holding },
})
}
disabled={isDisabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const V3HoldingsItemUnstaked = ({ holding }: { holding: Holding }) => {
onClick={() =>
pushModal({
modalName: ModalNames.V3Withdraw,
data: holding,
data: { holding },
})
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const V3HoldingsItemWithdraw = ({ holding }: { holding: Holding }) => {
onClick={() =>
pushModal({
modalName: ModalNames.V3Withdraw,
data: holding,
data: { holding },
})
}
>
Expand Down

0 comments on commit 01dca4e

Please sign in to comment.