Skip to content

Commit

Permalink
fix(demo-app): hide username if not exists (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe authored Jul 21, 2022
1 parent ee17590 commit 8b30f97
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/demo-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ const Main = () => {
<div className={styles.title}>{t('title')}</div>
<div className={styles.text}>{t('subtitle')}</div>
<div className={styles.infoCard}>
<div>
{t('username')}
<span>{user.username}</span>
</div>
{user.username && (
<div>
{t('username')}
<span>{user.username}</span>
</div>
)}
<div>
{t('user_id')}
<span>{user.sub}</span>
Expand Down

0 comments on commit 8b30f97

Please sign in to comment.