Skip to content

Commit

Permalink
Nothing diet now is the default one when setting a profile (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlotacb authored Jan 14, 2024
1 parent c963980 commit 326f77d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions organizator/app/(tabs)/profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,22 @@ export default function Index() {
"Gluten free" &&
response.userInformation?.alimentaryRestrictions !==
"No restrictions" &&
response.userInformation?.alimentaryRestrictions !== null,
response.userInformation?.alimentaryRestrictions !== null &&
response.userInformation?.alimentaryRestrictions !== "",
NOTHING:
response.userInformation?.alimentaryRestrictions ===
"No restrictions",
"No restrictions" ||
response.userInformation?.alimentaryRestrictions === null ||
response.userInformation?.alimentaryRestrictions === "",
});
setInputs({
firstName: response.userInformation?.firstName || "",
lastName: response.userInformation?.lastName || "",
bio: response.userInformation?.bio || "",
tShirtSize: response.userInformation?.tShirtSize || "",
alimentaryRestrictions:
response.userInformation?.alimentaryRestrictions || "",
response.userInformation?.alimentaryRestrictions ||
"No restrictions",
dateOfBirth: response.userInformation?.dateOfBirth || "",
gender: response.userInformation?.gender || "",
github: response.userInformation?.github || "",
Expand Down

0 comments on commit 326f77d

Please sign in to comment.