From 292c74be42ead8b56e9f532cfa742c6e9ea26e9b Mon Sep 17 00:00:00 2001 From: Vo Hoang Huy Date: Fri, 24 May 2024 21:20:31 +0700 Subject: [PATCH] fix --- src/context/socket.ctx.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/socket.ctx.tsx b/src/context/socket.ctx.tsx index ea46a22..57f6960 100644 --- a/src/context/socket.ctx.tsx +++ b/src/context/socket.ctx.tsx @@ -147,7 +147,7 @@ export const SocketProvider = ({ } const res = await fetch( - `${API_URL}/api/conversation-live-chat/${ + `${props.API_URL || API_URL}/api/conversation-live-chat/${ userId || genId() }/${_channelId}`, )