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:
parent
ee17590bcf
commit
8b30f974bf
1 changed files with 6 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue