From 1b93940a37ec2f2aa7188570d129f2ef4cc6de37 Mon Sep 17 00:00:00 2001 From: Eugene Dyudyunov Date: Wed, 5 Jul 2023 18:36:37 +0300 Subject: [PATCH] fix: error when trying to save 'other education' (#666) 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). --- src/profile/__snapshots__/ProfilePage.test.jsx.snap | 2 +- src/profile/data/constants.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/profile/__snapshots__/ProfilePage.test.jsx.snap b/src/profile/__snapshots__/ProfilePage.test.jsx.snap index aafe50c..c33803d 100644 --- a/src/profile/__snapshots__/ProfilePage.test.jsx.snap +++ b/src/profile/__snapshots__/ProfilePage.test.jsx.snap @@ -2995,7 +2995,7 @@ exports[` Renders correctly in various states test education edit No formal education diff --git a/src/profile/data/constants.js b/src/profile/data/constants.js index ee6ce37..1db1673 100644 --- a/src/profile/data/constants.js +++ b/src/profile/data/constants.js @@ -7,7 +7,7 @@ const EDUCATION_LEVELS = [ 'jhs', 'el', 'none', - 'o', + 'other', ]; const SOCIAL = {