Skip to content

Commit

Permalink
Merge pull request #1584 from topcoder-platform/metadata-fix
Browse files Browse the repository at this point in the history
Metadata fix try 1
  • Loading branch information
kkartunov authored Dec 14, 2023
2 parents 2dfe14c + beaaf6b commit efdabbd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/util/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,15 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
}))
return challengeDetailTmp
}
if(challengeDetail.metadata && challengeDetail.metadata.length > 0) {
challengeDetail.metadata = challengeDetail.metadata.map(m => {
// check if value is boolean and convert to string
if (typeof m.value === 'boolean') {
m.value = m.value.toString()
}

return m
})
}
return challengeDetail
}

0 comments on commit efdabbd

Please sign in to comment.