Page MenuHomePhorge

D9047.1768476646.diff
No OneTemporary

Size
925 B
Referenced Files
None
Subscribers
None

D9047.1768476646.diff

diff --git a/web/push-notif/badge-handler.react.js b/web/push-notif/badge-handler.react.js
--- a/web/push-notif/badge-handler.react.js
+++ b/web/push-notif/badge-handler.react.js
@@ -1,15 +1,18 @@
// @flow
+import invariant from 'invariant';
import * as React from 'react';
-import { useSelector } from 'react-redux';
+import { connectionSelector } from 'lib/selectors/keyserver-selectors.js';
import { unreadCount } from 'lib/selectors/thread-selectors.js';
import electron from '../electron.js';
+import { useSelector } from '../redux/redux-utils.js';
import getTitle from '../title/getTitle.js';
function useBadgeHandler() {
- const connection = useSelector(state => state.connection);
+ const connection = useSelector(connectionSelector);
+ invariant(connection, 'keyserver missing from keyserverStore');
const prevConnection = React.useRef();
const boundUnreadCount = useSelector(unreadCount);

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 15, 11:30 AM (4 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5937555
Default Alt Text
D9047.1768476646.diff (925 B)

Event Timeline