This commit is contained in:
2023-04-07 12:13:07 +02:00
parent 665e5a5539
commit 709bc96e57
3 changed files with 47 additions and 8 deletions

View File

@@ -14,8 +14,8 @@ const MainLobby = () => {
const handleCreateRoom = () => {
fetch(ROOM_URL, {
method: 'POST',
}).then(r => r.json()).then(data => {
navigateTo(`/room/${data}`)
}).then(res => res.json()).then(room => {
navigateTo(`/room/${room}`);
});
}