Handle promise linting (#5488)

This commit is contained in:
Tom Moor
2023-06-28 20:18:18 -04:00
committed by GitHub
parent f3d8129a13
commit 89d5527d39
101 changed files with 395 additions and 343 deletions

View File

@@ -43,7 +43,9 @@ function Notifications(
// Account for old versions of the desktop app that don't have the
// setNotificationCount method on the bridge.
if (Desktop.bridge && "setNotificationCount" in Desktop.bridge) {
Desktop.bridge.setNotificationCount(notifications.approximateUnreadCount);
void Desktop.bridge.setNotificationCount(
notifications.approximateUnreadCount
);
}
}, [notifications.approximateUnreadCount]);