Skip to content

Commit e9363bd

Browse files
committed
filter out self from editing peers
1 parent 50a0c80 commit e9363bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/components/ExpandedViewMode/EVMiddleColumn/TabContent/EvDetails/EvDetails.connector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function mapStateToProps(
106106
(agentInfo) =>
107107
agentInfo.outcomeBeingEdited.outcomeActionHash === outcomeActionHash
108108
)
109+
.filter((agentInfo) => agentInfo.agentPubKey !== state.agentAddress) // don't include self
109110
.map((agentInfo) => filterAndAddAgentInfo(agentInfo))
110111
// this should only ever by a maximum of two peers (one editing title, one editing description)
111112

0 commit comments

Comments
 (0)