fix: addresses feedback

pull/3216/head
wafflesvsfrankie 11 months ago
parent 948e5df6fd
commit 1caf0fe03a

@ -241,13 +241,12 @@ export const ActionsPanel = () => {
}, []); }, []);
const globalUnreadMessageCount = useSelector(getGlobalUnreadMessageCount); const globalUnreadMessageCount = useSelector(getGlobalUnreadMessageCount);
const unreadToShow = globalUnreadMessageCount;
// Reuse the unreadToShow from the global state to update the badge count // Reuse the unreadToShow from the global state to update the badge count
useThrottleFn( useThrottleFn(
() => { () => {
if (unreadToShow !== undefined) { if (globalUnreadMessageCount !== undefined) {
ipcRenderer.send('update-badge-count', unreadToShow); ipcRenderer.send('update-badge-count', globalUnreadMessageCount);
} }
}, },
2000, 2000,

Loading…
Cancel
Save