From ebf0c82147851c50796c00fcd68b1591d052ae70 Mon Sep 17 00:00:00 2001 From: Manzoor Wani Date: Thu, 19 Dec 2024 12:56:04 +0530 Subject: [PATCH] Oops! It should be negation --- .../src/components/form/unsupported-connections-notice.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/js-packages/publicize-components/src/components/form/unsupported-connections-notice.tsx b/projects/js-packages/publicize-components/src/components/form/unsupported-connections-notice.tsx index 6aa2976638bd4..778db75f9b53f 100644 --- a/projects/js-packages/publicize-components/src/components/form/unsupported-connections-notice.tsx +++ b/projects/js-packages/publicize-components/src/components/form/unsupported-connections-notice.tsx @@ -13,9 +13,10 @@ export const UnsupportedConnectionsNotice: React.FC = () => { const getServices = useService(); - const unsupportedConnections = connections.filter( connection => - // If getServices returns falsy, it means the service is unsupported. - getServices( connection.service_name ) + const unsupportedConnections = connections.filter( + connection => + // If getServices returns falsy, it means the service is unsupported. + ! getServices( connection.service_name ) ); return (