Handle promise linting (#5488)
This commit is contained in:
@@ -30,11 +30,11 @@ function NotificationListItem({ notification, onNavigate }: Props) {
|
||||
if (event.altKey) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
notification.toggleRead();
|
||||
void notification.toggleRead();
|
||||
return;
|
||||
}
|
||||
|
||||
notification.markAsRead();
|
||||
void notification.markAsRead();
|
||||
|
||||
onNavigate();
|
||||
};
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user