Skip to content

Commit

Permalink
chore: add github url as default link return if user has no blog url
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming authored May 28, 2023
1 parent 0594b76 commit f5d7ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = class extends Base {
id: userInfo.login,
name: userInfo.name || userInfo.login,
email: userInfo.email,
url: userInfo.blog,
url: userInfo.blog || `https://github.com/${userInfo.login}`,
avatar: userInfo.avatar_url,
};
}
Expand Down

0 comments on commit f5d7ac8

Please sign in to comment.