0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

fix(demo-app): hide username if not exists (#1644)

This commit is contained in:
Darcy Ye 2022-07-21 17:29:22 +08:00 committed by GitHub
parent ee17590bcf
commit 8b30f974bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>