Skip to content

Commit 83a7f6f

Browse files
authored
Merge pull request #917 from Stremio/fix/trakt-logout-button
Settings: fix trakt logout button
2 parents 0875b89 + 8968055 commit 83a7f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/Settings/Settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const Settings = () => {
314314
</div>
315315
<Button className={classnames(styles['option-input-container'], styles['button-container'])} title={'Authenticate'} disabled={profile.auth === null} tabIndex={-1} onClick={toggleTraktOnClick}>
316316
<div className={styles['label']}>
317-
{ profile.auth !== null && profile.auth.user !== null && profile.auth.user.trakt !== null ? t('LOG_OUT') : t('SETTINGS_TRAKT_AUTHENTICATE') }
317+
{ isTraktAuthenticated ? t('LOG_OUT') : t('SETTINGS_TRAKT_AUTHENTICATE') }
318318
</div>
319319
</Button>
320320
</div>

0 commit comments

Comments
 (0)