Skip to content

Commit

Permalink
revert last change
Browse files Browse the repository at this point in the history
  • Loading branch information
ljankoschek committed Jun 30, 2024
1 parent a35d701 commit b330fb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fe1-web/src/features/lao/reducer/LaoServerReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ const serverSlice = createSlice({
}

if (server.address in laoState.byAddress) {
updateServer(new Hash(server.laoId), server.address, server);
return;
throw Error(
`${server.address} is already part of laoState.byAddress. Use updateServer() instead of addServer()`,
);
}

laoState.byAddress[server.address] = server;
Expand Down

0 comments on commit b330fb9

Please sign in to comment.