Skip to content

Commit

Permalink
FIx: 채팅 빌드 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
JitHoon committed Nov 15, 2023
1 parent ff7ca65 commit dffce09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/chat/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ChatRoom from '@/Components/Chat/ChatRoom';
const Chat = ({ params }: { params: { id: string } }) => {
const chatId = params.id;
const query = useSearchParams();
const privateValue = query.get('isPrivate') as string;
const privateValue = query?.get('isPrivate') as string;
const accessToken = getCookie('accessToken');

const socket = io(`https://fastcampus-chat.net/chat?chatId=${chatId}`, {
Expand Down

0 comments on commit dffce09

Please sign in to comment.