Skip to content

Commit

Permalink
fix name display on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtg-nav committed Apr 8, 2021
1 parent 4b07443 commit e161715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const Header = ({
<div className="Header__name__wrapper">
{userInfo && (
<div className="Header__name">
{userInfo.fornavn + " " + userInfo.etternavn}
{userInfo.fornavn && userInfo.etternavn ? userInfo.fornavn + " " + userInfo.etternavn : "Ukjent"}
</div>
)}
<div className={userInfo ? 'Header__logout-name' : ''}>
Expand Down

0 comments on commit e161715

Please sign in to comment.