Skip to content

Commit 7163ccc

Browse files
authored
Merge pull request #380 from weswalla/fix/allow-simulaneous-self-edits
filter out self from editing peers
2 parents 50a0c80 + e9363bd commit 7163ccc

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)