no log: Remove red dot when notification center is empty

pull/1523/head
LASER-Yi 3 years ago
parent 275598a393
commit e8fa5d982f

@ -76,6 +76,12 @@ const NotificationCenter: FunctionComponent = () => {
}
}, [hasNewProgress, hasNewNotifications]);
useDidUpdate(() => {
if (progress.length === 0 && notifications.length === 0) {
setHasNew(false);
}
}, [progress.length, notifications.length]);
const [btnState, setBtnState] = useState(State.Idle);
const totalProgress = useTotalProgress(progress);

Loading…
Cancel
Save