Skip to content

Commit

Permalink
Merge pull request #75 from sopra-fs24-group-09/revert-74-feature/lob…
Browse files Browse the repository at this point in the history
…by-ui

Revert "Feature/lobby UI"
  • Loading branch information
Haaaan1 authored Apr 20, 2024
2 parents ba16c67 + 811978c commit 21c920e
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 691 deletions.
6 changes: 2 additions & 4 deletions src/components/routing/routeProtectors/LobbyGuard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ export const LobbyGuard = () => {

return <Outlet />;
}
// Debugging

return <Outlet />;
//return <Navigate to="/login" replace />;

return <Navigate to="/login" replace />;
};

LobbyGuard.propTypes = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/Editprofile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ FormField.propTypes = {

const EditProfile = () => {
const navigate = useNavigate();
const userid = sessionStorage.getItem("id") ?? "";
const currentUsername = sessionStorage.getItem("username") ?? "";
const userid = localStorage.getItem("id") ?? "";
const currentUsername = localStorage.getItem("username") ?? "";
const [id] = useState<string>(userid);
const [username, setUsername] = useState<string | "">(currentUsername);
const [birthday, setBirthday] = useState<string | "">("");
Expand Down
Loading

0 comments on commit 21c920e

Please sign in to comment.