Skip to content

Commit 760decf

Browse files
committed
Use && instead of ||.
1 parent f48b438 commit 760decf

File tree

1 file changed

+2
-2
lines changed
  • kolibri/plugins/user/assets/src/views/sign-in-page

1 file changed

+2
-2
lines changed

kolibri/plugins/user/assets/src/views/sign-in-page/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
});
161161
},
162162
setSuggestionTerm(newVal, oldVal) {
163-
if (newVal !== null || typeof newVal !== 'undefined') {
163+
if (newVal !== null && typeof newVal !== 'undefined') {
164164
// Only check if defined or not null
165165
if (newVal.length < 3) {
166166
// Don't search for suggestions if less than 3 characters entered
@@ -190,7 +190,7 @@
190190
},
191191
fillUsername(username) {
192192
// Only do this if we have been passed a non-null value
193-
if (username !== null || typeof username !== 'undefined') {
193+
if (username !== null && typeof username !== 'undefined') {
194194
this.username = username;
195195
this.showDropdown = false;
196196
}

0 commit comments

Comments
 (0)