🐛 Fix logic in GH profile widget
This commit is contained in:
@@ -23,7 +23,7 @@ export default {
|
|||||||
},
|
},
|
||||||
username() {
|
username() {
|
||||||
const usersChoice = this.options.username;
|
const usersChoice = this.options.username;
|
||||||
if ((this.hideLanguagesCard || this.hideLanguagesCard) && !usersChoice) {
|
if ((!this.hideProfileCard || !this.hideLanguagesCard) && !usersChoice) {
|
||||||
this.error('You must specify a GitHub username');
|
this.error('You must specify a GitHub username');
|
||||||
}
|
}
|
||||||
return usersChoice;
|
return usersChoice;
|
||||||
|
|||||||
Reference in New Issue
Block a user