Merge pull request #917 from Stremio/fix/trakt-logout-button
Some checks are pending
Build / build (push) Waiting to run

Settings: fix trakt logout button
This commit is contained in:
Timothy Z. 2025-05-27 21:36:24 +03:00 committed by GitHub
commit 83a7f6fd3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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') }
{ isTraktAuthenticated ? t('LOG_OUT') : t('SETTINGS_TRAKT_AUTHENTICATE') }
</div>
</Button>
</div>