Skip to content

Commit

Permalink
Fix withdraw bug (#299)
Browse files Browse the repository at this point in the history
* Fix withdraw bug

* Remove console log
guibescos authored Dec 7, 2023
1 parent 9467d4f commit 8d299ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/panels/WithdrawPanel.tsx
Original file line number Diff line number Diff line change
@@ -41,14 +41,14 @@ export function WithdrawPanel({ mainStakeAccount }: WithdrawPanelProps) {

const isSufficientBalance = isSufficientBalanceFn(amount, unlockedPythBalance)

const onAction = useCallback(() => {
const onAction = () => {
withdrawMutation.mutate({
amount,
// action enabled only when the two props are defined
mainStakeAccount: mainStakeAccount as StakeAccount,
stakeConnection: stakeConnection!,
})
}, [])
}

return (
<Layout>

2 comments on commit 8d299ea

@vercel
Copy link

@vercel vercel bot commented on 8d299ea Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8d299ea Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

staking-devnet – ./

governance-nu.vercel.app
staking-devnet-git-main-pyth-web.vercel.app
staking-devnet-pyth-web.vercel.app

Please sign in to comment.