diff --git a/lib/identity-search/identity-search-context.js b/lib/identity-search/identity-search-context.js index a77d633ebf..fe93e93b6c 100644 --- a/lib/identity-search/identity-search-context.js +++ b/lib/identity-search/identity-search-context.js @@ -203,7 +203,7 @@ function IdentitySearchProvider(props: Props): React.Node { const heartbeat: Heartbeat = { type: identitySearchMessageToServerTypes.HEARTBEAT, }; - socket.current?.send(JSON.stringify(heartbeat)); + identitySearchSocket.send(JSON.stringify(heartbeat)); } };