From 03379ac1a726fc64286a8280079fa7b6eb819a47 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Mon, 26 Jul 2021 12:20:11 -0700 Subject: [PATCH] Fix new room redirect --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 7b22e3c..3678aab 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -292,7 +292,7 @@ function JoinOrCreateRoom({ client }) { name: roomNameRef.current.value, }) .then(({ room_id }) => { - history.push(`/rooms/${room_id}`); + history.push(`/room/${room_id}`); }) .catch(setCreateRoomError); }, @@ -307,7 +307,7 @@ function JoinOrCreateRoom({ client }) { client .joinRoom(roomIdRef.current.value) .then(({ roomId }) => { - history.push(`/rooms/${roomId}`); + history.push(`/room/${roomId}`); }) .catch(setJoinRoomError); },