Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkiriungi committed Jan 17, 2024
1 parent daf755f commit 9b3ca04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function App() {
<CssBaseline />
<Routes>
<Route path="/" element= {<LoginPage />} />
<Route path="/home" element= {isAuth ? <HomePage /> : <Navigate to="/" />} />
<Route path="/profile/:userId" element= {isAuth ? <ProfilePage /> : <Navigate to="/" />} />
<Route path="/home" element={isAuth ? <HomePage /> : <Navigate to="/" />} />
<Route path="/profile/:userId" element={isAuth ? <ProfilePage /> : <Navigate to="/" />} />
</Routes>
</ThemeProvider>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion client/src/scenes/widgets/UserWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const UserWidget = ({ userId, picturePath }) => {
const main = palette.neutral.main;

const getUser = async () => {
const response = await fetch(`http://localhost:3001/users${userId}`, {
const response = await fetch(`http://localhost:3001/users/${userId}`, {
method: "GET",
headers: { Authorization: `Bearer ${token}`},
});
Expand Down

0 comments on commit 9b3ca04

Please sign in to comment.