We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48b438 commit 760decfCopy full SHA for 760decf
kolibri/plugins/user/assets/src/views/sign-in-page/index.vue
@@ -160,7 +160,7 @@
160
});
161
},
162
setSuggestionTerm(newVal, oldVal) {
163
- if (newVal !== null || typeof newVal !== 'undefined') {
+ if (newVal !== null && typeof newVal !== 'undefined') {
164
// Only check if defined or not null
165
if (newVal.length < 3) {
166
// Don't search for suggestions if less than 3 characters entered
@@ -190,7 +190,7 @@
190
191
fillUsername(username) {
192
// Only do this if we have been passed a non-null value
193
- if (username !== null || typeof username !== 'undefined') {
+ if (username !== null && typeof username !== 'undefined') {
194
this.username = username;
195
this.showDropdown = false;
196
}
0 commit comments