Skip to content

Commit

Permalink
actions: fix showPhoto
Browse files Browse the repository at this point in the history
  • Loading branch information
makinbacon21 committed Sep 30, 2024
1 parent 2d13349 commit 97eeee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function submitData(prevState: {
lastName: formData.get("lName")?.toString() || "",
pronouns: formData.get("pNouns")?.toString() || "",
showDorm: formData.get("showDorm"),
showPicture: formData.get("showPicture"),
showPhoto: formData.get("showPhoto"),
showProfile: formData.get("showProfile"),
};

Expand All @@ -143,7 +143,7 @@ export async function submitData(prevState: {
photoPath: photo_path,
showProfile: rawFormData.showProfile === "on" ? true : false,
showDorm: rawFormData.showDorm === "on" ? true : false,
showPhoto: rawFormData.showPicture === "on" ? true : false,
showPhoto: rawFormData.showPhoto === "on" ? true : false,
},
create: {
uid: id,
Expand All @@ -156,7 +156,7 @@ export async function submitData(prevState: {
gradYear: itsRecord[0]["GRAD_YEAR"],
showProfile: rawFormData.showProfile === "on" ? true : false,
showDorm: rawFormData.showDorm === "on" ? true : false,
showPhoto: rawFormData.showPicture === "on" ? true : false,
showPhoto: rawFormData.showPhoto === "on" ? true : false,
},
});

Expand Down

0 comments on commit 97eeee5

Please sign in to comment.