diff --git a/pages/rooms/[name].tsx b/pages/rooms/[name].tsx index ee34567..932ee92 100644 --- a/pages/rooms/[name].tsx +++ b/pages/rooms/[name].tsx @@ -65,9 +65,7 @@ type ActiveRoomProps = { onLeave?: () => void; }; const ActiveRoom = ({ roomName, userChoices, onLeave }: ActiveRoomProps) => { - const token = useToken({ - tokenEndpoint: process.env.NEXT_PUBLIC_LK_TOKEN_ENDPOINT, - roomName, + const token = useToken(process.env.NEXT_PUBLIC_LK_TOKEN_ENDPOINT, roomName, { userInfo: { identity: userChoices.username, name: userChoices.username,