diff --git a/cmd/graphql.ethereum/graph/schema.resolvers.go b/cmd/graphql.ethereum/graph/schema.resolvers.go index b8df3f39..acd94bc6 100644 --- a/cmd/graphql.ethereum/graph/schema.resolvers.go +++ b/cmd/graphql.ethereum/graph/schema.resolvers.go @@ -1190,7 +1190,7 @@ func (r *walletResolver) ID(ctx context.Context, obj *model.Wallet) (string, err return "", fmt.Errorf("no wallet obj") } return "wallet:" + obj.Address.String(), nil -} +} // Address is the resolver for the address field. func (r *walletResolver) Address(ctx context.Context, obj *model.Wallet) (string, error) { diff --git a/web/src/components/StakeForm.tsx b/web/src/components/StakeForm.tsx index 1f3c286a..673f77b2 100644 --- a/web/src/components/StakeForm.tsx +++ b/web/src/components/StakeForm.tsx @@ -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,