Skip to content

Commit

Permalink
refactor: better code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-osch committed Jan 21, 2025
1 parent c2957b5 commit ec6fc8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vue/src/components/Topbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export default {
signIn() {
this.error = ''
if (!this.email || !this.password) {
const fieldsMissing = this.email || !this.password
if (fieldsMissing) {
this.error = 'Please fill in all fields.'
return
}
Expand Down

0 comments on commit ec6fc8f

Please sign in to comment.