Skip to content

Commit

Permalink
check non-null address when vesting position
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Dec 12, 2024
1 parent c740f9e commit bda774b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions web/src/app/stake/pool/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,13 @@ export default function PoolPage() {

const vestPosition = useCallback(
(id: bigint) => {
writeContractVestPosition({
address: leoContract.address,
abi: leoContract.abi,
functionName: "vestPosition",
args: [token0.address, id, address],
});
address &&
writeContractVestPosition({
address: leoContract.address,
abi: leoContract.abi,
functionName: "vestPosition",
args: [token0.address, id, address],
});
},
[
writeContractVestPosition,
Expand Down

0 comments on commit bda774b

Please sign in to comment.