Fix new room redirect
This commit is contained in:
		
					parent
					
						
							
								a38f15e032
							
						
					
				
			
			
				commit
				
					
						03379ac1a7
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -292,7 +292,7 @@ function JoinOrCreateRoom({ client }) {
 | 
				
			||||||
          name: roomNameRef.current.value,
 | 
					          name: roomNameRef.current.value,
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        .then(({ room_id }) => {
 | 
					        .then(({ room_id }) => {
 | 
				
			||||||
          history.push(`/rooms/${room_id}`);
 | 
					          history.push(`/room/${room_id}`);
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        .catch(setCreateRoomError);
 | 
					        .catch(setCreateRoomError);
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					@ -307,7 +307,7 @@ function JoinOrCreateRoom({ client }) {
 | 
				
			||||||
      client
 | 
					      client
 | 
				
			||||||
        .joinRoom(roomIdRef.current.value)
 | 
					        .joinRoom(roomIdRef.current.value)
 | 
				
			||||||
        .then(({ roomId }) => {
 | 
					        .then(({ roomId }) => {
 | 
				
			||||||
          history.push(`/rooms/${roomId}`);
 | 
					          history.push(`/room/${roomId}`);
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        .catch(setJoinRoomError);
 | 
					        .catch(setJoinRoomError);
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue