Skip to content

Commit

Permalink
Merge pull request #11302 from vegaprotocol/11296-observe-positions-f…
Browse files Browse the repository at this point in the history
…ilter

fix: positions stream should still filter on party when it has no der…
  • Loading branch information
wwestgarth authored May 22, 2024
2 parents 9f9059c + bfb8813 commit bb1af9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datanode/api/trading_data_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ func (t *TradingDataServiceV2) ObservePositions(req *v2.ObservePositionsRequest,
}

// add the party to the derived parties
if len(derivedParties) > 0 {
if req.PartyId != nil && len(*req.PartyId) > 0 {
derivedParties = append(derivedParties, *req.PartyId)
}

Expand Down

0 comments on commit bb1af9f

Please sign in to comment.