diff --git a/src/components/ShareExperience/WorkExperiencesForm/TypeForm.js b/src/components/ShareExperience/WorkExperiencesForm/TypeForm.js index c471e0527..786f4e219 100644 --- a/src/components/ShareExperience/WorkExperiencesForm/TypeForm.js +++ b/src/components/ShareExperience/WorkExperiencesForm/TypeForm.js @@ -37,8 +37,10 @@ import { tabType } from '../../../constants/companyJobTitle'; import { createWorkExperienceWithRating } from 'actions/experiences'; import { transferKeyToSnakecase } from 'utils/objectUtil'; import { GA_CATEGORY, GA_ACTION } from 'constants/gaConstants'; +import { ERROR_CODE_MSG } from 'constants/errorCodeMsg'; import { sendEvent } from 'utils/hotjarUtil'; +import rollbar from 'utils/rollbar'; const header =
; @@ -137,6 +139,11 @@ const TypeForm = ({ open, onClose, hideProgressBar = false }) => { category: GA_CATEGORY.SHARE_WORK, action: GA_ACTION.UPLOAD_FAIL, }); + const errorCode = 'ER0020'; + rollbar.error( + `[${errorCode}] ${ERROR_CODE_MSG[errorCode].internal} ${error.message}`, + error, + ); }, []); return ( diff --git a/src/constants/errorCodeMsg.js b/src/constants/errorCodeMsg.js index 1643a9e19..a8d8fb302 100644 --- a/src/constants/errorCodeMsg.js +++ b/src/constants/errorCodeMsg.js @@ -78,4 +78,7 @@ export const ERROR_CODE_MSG = { ER0019: { internal: 'Not submittable', }, + ER0020: { + internal: 'Submit work experience failed', + }, }; diff --git a/src/graphql/jobTitle.js b/src/graphql/jobTitle.js index 3a181a1b3..89392875e 100644 --- a/src/graphql/jobTitle.js +++ b/src/graphql/jobTitle.js @@ -73,6 +73,7 @@ export const queryJobTitleOverviewGql = /* GraphQL */ ` reply_count like_count recommend_to_others + averageSectionRating } } salaryWorkTimesResult(start: 0, limit: $salaryWorkTimesLimit) { @@ -272,6 +273,7 @@ export const getJobTitleWorkExperiencesQuery = /* GraphQL */ ` reply_count like_count recommend_to_others + averageSectionRating } } }