Skip to content

Commit

Permalink
removed githubId and ternary operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Surtt committed Apr 23, 2021
1 parent da683f8 commit 90fe63e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions services/app/assets/js/widgets/containers/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,13 @@ const UserProfile = () => {
</div>
<h1 className="mt-5 mb-0">
{stats.user.name}
{stats.user.githubId && stats.user.githubName ? (
{stats.user.githubName && (
<a
className="text-muted"
href={`https://github.com/${stats.user.githubName}`}
>
<span className="fab fa-github pl-3" />
</a>
) : (
''
)}
</h1>
<h2 className="mt-1 mb-0">{`Lang: ${stats.user.lang}`}</h2>
Expand Down

0 comments on commit 90fe63e

Please sign in to comment.