diff --git a/desktop/flipper-ui-core/src/dispatcher/flipperServer.tsx b/desktop/flipper-ui-core/src/dispatcher/flipperServer.tsx
index 695630b5a..03153c5b4 100644
--- a/desktop/flipper-ui-core/src/dispatcher/flipperServer.tsx
+++ b/desktop/flipper-ui-core/src/dispatcher/flipperServer.tsx
@@ -36,28 +36,21 @@ export function connectFlipperServerToStore(
logger: Logger,
) {
server.on('notification', ({type, title, description}) => {
- const text = `[${type}] ${title}: ${description}`;
- console.warn(text);
+ const key = `[${type}] ${title}: ${description}`;
notification.open({
message: title,
description: ,
type: type,
duration: 0,
- key: text,
+ key,
});
});
server.on(
'connectivity-troubleshoot-notification',
({type, title, description}) => {
- const text = `[${type}] ${title}: ${description}`;
- notification.open({
- message: title,
- description: ,
- type: type,
- duration: 0,
- key: text,
- });
+ const key = `[${type}] ${title}: ${description}`;
+ showConnectivityTroubleshootNotification(store, key, title, description);
},
);