mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 13:18:24 +00:00
Check that usernameInput ref exists
This commit is contained in:
parent
7b507e5248
commit
c4ddf6d93e
1 changed files with 5 additions and 0 deletions
|
@ -187,6 +187,11 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onNickChanged(event) {
|
onNickChanged(event) {
|
||||||
|
// Username input is not available when useHexIp is set
|
||||||
|
if (!this.$refs.usernameInput) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!this.$refs.usernameInput.value ||
|
!this.$refs.usernameInput.value ||
|
||||||
this.$refs.usernameInput.value === this.previousUsername
|
this.$refs.usernameInput.value === this.previousUsername
|
||||||
|
|
Loading…
Add table
Reference in a new issue