Skip to content

Commit

Permalink
Merge pull request #39 from timo1227/EmailFix
Browse files Browse the repository at this point in the history
Fixed issue with Updating Email
  • Loading branch information
Timothy Estrada authored May 4, 2023
2 parents b20c176 + b09510b commit 8b804cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/User/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Profile() {

const handleSubmit = async (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault();
const res = await fetch(`/api/user/${userData.email}`, {
const res = await fetch(`/api/user/${session?.user?.email}`, {
method: 'PUT',
body: JSON.stringify(userData),
headers: {
Expand Down

0 comments on commit 8b804cf

Please sign in to comment.