Skip to content

Commit

Permalink
Merge pull request #10 from NamgungJongMin/develop
Browse files Browse the repository at this point in the history
🚑Fix: fix way to insert query string
  • Loading branch information
noSPkeepgoing authored Nov 15, 2023
2 parents f358962 + e99f0c1 commit 570ad37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ function App() {
<Route path="/" element={<Signin />} />
<Route path="/lobby" element={<Lobby />} />
<Route path="/signup" element={<Signup />} />
<Route path="/chat/:id" element={<Chat />} />
<Route path="/hanging/:id" element={<Hanging />} />
<Route path="/night/:id" element={<Night />} />
<Route path="/result/:id" element={<Result />} />
<Route path="/role/:id" element={<Role />} />
<Route path="/vote/:id" element={<Vote />} />
<Route path="/chat" element={<Chat />} />
<Route path="/hanging" element={<Hanging />} />
<Route path="/night" element={<Night />} />
<Route path="/result" element={<Result />} />
<Route path="/role" element={<Role />} />
<Route path="/vote" element={<Vote />} />
</Routes>
</BrowserRouter>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/lobby/CreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const CreateModal = ({ toggleModal }: Props): JSX.Element => {
],
});

navigate(`/chat/${fastResponse.id}`);
navigate(`/chat?chatId=${fastResponse.id}&pocketId=${pocketResponse.id}`);

console.log(
`fastResponse: ${fastResponse.id}`,
`pocketResponse: ${pocketResponse}`,
`pocketResponse: ${pocketResponse.id}`,
);
} catch (error) {
console.error('Creat Room Request Error');
Expand Down

0 comments on commit 570ad37

Please sign in to comment.