Fix bug with joining new channels

This commit is contained in:
Tim Miller-Williams 2019-11-07 23:44:19 +00:00 committed by Pavel Djundik
parent 347802a4b6
commit 1adbbdda2a

View File

@ -59,7 +59,9 @@ export default {
}, },
methods: { methods: {
onSubmit() { onSubmit() {
const existingChannel = this.$store.getters.findChannelOnCurrentNetwork(this.channel); const existingChannel = this.$store.getters.findChannelOnCurrentNetwork(
this.inputChannel
);
if (existingChannel) { if (existingChannel) {
this.$root.switchToChannel(existingChannel); this.$root.switchToChannel(existingChannel);