Skip to content

Commit

Permalink
Merge pull request #155 from Bahmni/gender-in-edit
Browse files Browse the repository at this point in the history
Kavitha | A-1205219540895165 | fix gender not shown in edit page
  • Loading branch information
kavitha-sundararajan authored Aug 17, 2023
2 parents 2109197 + 7f34b8a commit 0f9ca79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/containers/EditPerson.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
background-color: rgba(250, 250, 250, 0.5);
margin-bottom: 0.8rem;
outline: 0 none;
color: black;
}

@media (max-width: 910px) {
Expand Down
12 changes: 6 additions & 6 deletions src/containers/EditPerson.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ class EditPerson extends Component {

getGender = gender => {
switch (gender) {
case 'Male':
return 'M';
case 'Female':
return 'F';
case 'Other':
return 'O';
case 'M':
return 'Male';
case 'F':
return 'Female';
case 'O':
return 'Other';
default:
return gender;
}
Expand Down

0 comments on commit 0f9ca79

Please sign in to comment.