auth
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user