aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-03 11:43:00 +0200
committerSimon Ser <contact@emersion.fr>2023-10-03 11:43:00 +0200
commit06f7cf95658721d815eef47fe7906354fa8fbebf (patch)
tree61e35b778c7747e4809f76d4ca987565e116c387
parent5e33919ccea49f2ba0804aad4bf6500a6d6677a8 (diff)
downloadgamja-06f7cf95658721d815eef47fe7906354fa8fbebf.tar.gz
gamja-06f7cf95658721d815eef47fe7906354fa8fbebf.zip
Fix ReferenceError when adding new bouncer network
Fixes the following: ReferenceError: can't access lexical declaration 'client' before initialization handleNetworkSubmit app.js:1868
-rw-r--r--components/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/app.js b/components/app.js
index 80c86d8..4788788 100644
--- a/components/app.js
+++ b/components/app.js
@@ -1873,8 +1873,8 @@ export default class App extends Component {
// By this point, bouncer-networks-notify should've advertised
// the new network
let serverID = this.serverFromBouncerNetwork(id);
- let client = this.clients.get(serverID);
- client.params.autojoin = [autojoin];
+ let newClient = this.clients.get(serverID);
+ newClient.params.autojoin = [autojoin];
this.switchToChannel = autojoin;
}