Skip to content

Commit

Permalink
fix: fix vesting release button
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed May 19, 2024
1 parent 1db5966 commit a2d4a6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/AssetsPage/ReleaseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export function ReleaseButton({
vesting: { address: string };
disabled?: boolean;
}) {
const { release, error, isLoading } = useVestingContractRelease({
address: vesting.address as `0x${string}`,
});
const { release, error, isLoading } = useVestingContractRelease();
const { data, isLoading: isVestingLoading } = useVestingContract({
address: vesting.address as `0x${string}`,
});
Expand All @@ -45,7 +43,9 @@ export function ReleaseButton({
validateOnMount: true,

onSubmit: async () => {
const { failedReason } = await release();
const { failedReason } = await release({
address: vesting.address as `0x${string}`,
});

if (!failedReason) {
handleClose();
Expand Down

0 comments on commit a2d4a6e

Please sign in to comment.