fix(Settings): profile auth condition issue

This commit is contained in:
Tim 2023-03-05 14:20:33 +01:00
parent f7f72f5d90
commit 0852146fb5

View file

@ -257,7 +257,7 @@ const Settings = () => {
<Button className={classnames(styles['option-input-container'], styles['button-container'])} title={'Authenticate'} disabled={profile.auth === null} tabIndex={-1} onClick={toggleTraktOnClick}>
<Icon className={styles['icon']} icon={'ic_trakt'} />
<div className={styles['label']}>
{ profile.auth.user !== null && profile.auth.user.trakt !== null ? 'Log out' : 'Authenticate' }
{ profile.auth !== null && profile.auth.user !== null && profile.auth.user.trakt !== null ? 'Log out' : 'Authenticate' }
</div>
</Button>
</div>