diff --git a/client/src/contexts/WebSocketProvider.tsx b/client/src/contexts/WebSocketProvider.tsx
index b90f609..917dc22 100644
--- a/client/src/contexts/WebSocketProvider.tsx
+++ b/client/src/contexts/WebSocketProvider.tsx
@@ -131,19 +131,13 @@
 
   useEffect(connect, [connect]);
 
-  return (
-    <WebSocketContext.Provider
-      value={
-        isConnected
-          ? {
-              bind,
-              unbind,
-              send,
-            }
-          : undefined
+  const value: IWebSocketContext | undefined = isConnected
+    ? {
+        bind,
+        unbind,
+        send,
       }
-    >
-      {children}
-    </WebSocketContext.Provider>
-  );
+    : undefined;
+
+  return <WebSocketContext.Provider value={value}>{children}</WebSocketContext.Provider>;
 };
