Skip to content

Commit

Permalink
more bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshHare committed Nov 11, 2024
1 parent e2b862e commit d8fbce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/pages/logIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ const LogIn = () => {
email: createdUser.email,
role: createdUser.role || "unverified",
};
setUser(contextUser);
setUser(createdUser);
console.log("Context user ", contextUser);
alert("New user created successfully");
}
} catch (error) {
console.error("Error checking or creating user:", error);
Expand Down
1 change: 1 addition & 0 deletions init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ INSERT IGNORE INTO users (id, username, role, email) VALUES
(UUID(), 'Joshua Hare', 'admin', 'jmhhare@tamu.edu'),
(UUID(), 'Nishka Mittal', 'admin', 'nishka06@tamu.edu'),
(UUID(), 'Sydney Ferris', 'admin', 'sferris@tamu.edu'),
(UUID(), 'Britt Schiller', 'admin', 'brittschiller@tamu.edu'),
(UUID(), 'Kyle Shores', 'admin', 'kshores@ucar.edu');

-- Link users to mechanisms
Expand Down

0 comments on commit d8fbce5

Please sign in to comment.