Skip to content

Commit 109ff5e

Browse files
authored
only badget settings on mobile (#28578)
1 parent bfe0424 commit 109ff5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/settings/sub-nav/left-nav.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Props = {
1616
const LeftNav = (props: Props) => {
1717
const {navigate} = props
1818
const badgeNumbers = C.useNotifState(s => s.navBadges)
19-
const badgeNotifications = C.usePushState(s => !s.hasPermissions)
19+
const badgeNotifications = C.usePushState(s => (C.isElectron ? 0 : !s.hasPermissions ? 1 : 0))
2020

2121
const onSignout = React.useCallback(() => {
2222
navigate(C.Settings.settingsLogOutTab)
@@ -123,7 +123,7 @@ const LeftNav = (props: Props) => {
123123
/>
124124
)}
125125
<SettingsItem
126-
badgeNumber={badgeNotifications ? 1 : 0}
126+
badgeNumber={badgeNotifications}
127127
text="Notifications"
128128
type={C.Settings.settingsNotificationsTab}
129129
selected={props.selected === C.Settings.settingsNotificationsTab}

0 commit comments

Comments
 (0)