fix trakt logout button

This commit is contained in:
dexter21767-dev 2025-05-26 20:00:06 +01:00
parent a6f84d18d1
commit e8ac50135b

View file

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