Skip to content

Commit

Permalink
restore position data in stake form
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jun 21, 2024
1 parent f4f289a commit bc02873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/graphql.ethereum/graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/src/components/StakeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const StakeForm = ({ mode, poolId, positionId }: StakeFormProps) => {
const poolData = poolsData?.find((pool) => pool.address === poolId);

const positionData_ = useFragment(PositionsFragment, userData?.getWallet)
const positionData = null;
const positionData = positionData_?.positions.positions.find(p => p.positionId === positionId)

const { upper: upperTick, lower: lowerTick } = positionData || {
upper: 0,
Expand Down

0 comments on commit bc02873

Please sign in to comment.