Skip to content

Commit

Permalink
fix: error when trying to save 'other education' (#746)
Browse files Browse the repository at this point in the history
When user selects "Other Education" and clicks save - error occurs.

It's caused by the wrong API call payload value `'o'`
Fix: use the `'other'` payload value instead (the valid one).
  • Loading branch information
dyudyunov authored Jul 3, 2023
1 parent 8c77959 commit 5e35080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/profile/__snapshots__/ProfilePage.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2995,7 +2995,7 @@ exports[`<ProfilePage /> Renders correctly in various states test education edit
No formal education
</option>
<option
value="o"
value="other"
>
Other education
</option>
Expand Down
2 changes: 1 addition & 1 deletion src/profile/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const EDUCATION_LEVELS = [
'jhs',
'el',
'none',
'o',
'other',
];

const SOCIAL = {
Expand Down

0 comments on commit 5e35080

Please sign in to comment.