Skip to content

Commit

Permalink
Merge pull request #112 from gnosisguild/fix-connection-setup
Browse files Browse the repository at this point in the history
fix a concurrency issue in connections setup
  • Loading branch information
jfschwarz authored Jun 4, 2024
2 parents 27a2b77 + a6d66ea commit e43dff6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extension/src/connections/ConnectionsDrawer/Edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ const EditConnection: React.FC<Props> = ({ connectionId, onLaunched }) => {
: undefined

const updateConnection = (patch: ConnectionPatch) => {
setConnections(
connections.map((c) =>
c.id === connection.id ? { ...connection, ...patch } : c
)
setConnections((connections) =>
connections.map((c) => (c.id === connection.id ? { ...c, ...patch } : c))
)
}

Expand Down

0 comments on commit e43dff6

Please sign in to comment.