Active Websites: Hide option if empty (#2256)
This commit is contained in:
parent
8ea558bbab
commit
9e4ec8286c
@ -143,14 +143,6 @@ const SettingsPrivacy: FC<OwnProps & StateProps> = ({
|
||||
{lang('BlockedUsers')}
|
||||
<span className="settings-item__current-value">{blockedCount || ''}</span>
|
||||
</ListItem>
|
||||
<ListItem
|
||||
icon="web"
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
onClick={() => onScreenSelect(SettingsScreens.ActiveWebsites)}
|
||||
>
|
||||
{lang('PrivacySettings.WebSessions')}
|
||||
<span className="settings-item__current-value">{webAuthCount || ''}</span>
|
||||
</ListItem>
|
||||
<ListItem
|
||||
icon="key"
|
||||
narrow
|
||||
@ -181,6 +173,16 @@ const SettingsPrivacy: FC<OwnProps & StateProps> = ({
|
||||
</span>
|
||||
</div>
|
||||
</ListItem>
|
||||
{webAuthCount > 0 && (
|
||||
<ListItem
|
||||
icon="web"
|
||||
// eslint-disable-next-line react/jsx-no-bind
|
||||
onClick={() => onScreenSelect(SettingsScreens.ActiveWebsites)}
|
||||
>
|
||||
{lang('PrivacySettings.WebSessions')}
|
||||
<span className="settings-item__current-value">{webAuthCount}</span>
|
||||
</ListItem>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="settings-item">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user