Skip to content

Commit ec6fc8f

Browse files
committed
refactor: better code readability
1 parent c2957b5 commit ec6fc8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vue/src/components/Topbar.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ export default {
167167
signIn() {
168168
this.error = ''
169169
170-
if (!this.email || !this.password) {
170+
const fieldsMissing = this.email || !this.password
171+
if (fieldsMissing) {
171172
this.error = 'Please fill in all fields.'
172173
return
173174
}

0 commit comments

Comments
 (0)