From 1adbbdda2a6f1949239d9a6f62b26ecf4092457a Mon Sep 17 00:00:00 2001 From: Tim Miller-Williams Date: Thu, 7 Nov 2019 23:44:19 +0000 Subject: [PATCH] Fix bug with joining new channels --- client/components/JoinChannel.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/JoinChannel.vue b/client/components/JoinChannel.vue index ae85f0c9..f18ca848 100644 --- a/client/components/JoinChannel.vue +++ b/client/components/JoinChannel.vue @@ -59,7 +59,9 @@ export default { }, methods: { onSubmit() { - const existingChannel = this.$store.getters.findChannelOnCurrentNetwork(this.channel); + const existingChannel = this.$store.getters.findChannelOnCurrentNetwork( + this.inputChannel + ); if (existingChannel) { this.$root.switchToChannel(existingChannel);