Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Fix effort hours #56

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/metadataExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function extractEstimateEffortHours (challenge, defaultValue) {
* @param {Any} defaultValue the default value
*/
function extractEstimateEffortOffshore (challenge, defaultValue) {
const entry = getMeta(challenge.metadata, 'effortHoursOffshore')
const entry = getMeta(challenge.metadata, 'offshoreEfforts')
if (!entry) return _.toString(defaultValue)
return _.toNumber(entry.value)
}
Expand All @@ -176,7 +176,7 @@ function extractEstimateEffortOffshore (challenge, defaultValue) {
* @param {Any} defaultValue the default value
*/
function extractEstimateEffortOnsite (challenge, defaultValue) {
const entry = getMeta(challenge.metadata, 'effortHoursOnshore')
const entry = getMeta(challenge.metadata, 'onsiteEfforts')
if (!entry) return _.toString(defaultValue)
return _.toNumber(entry.value)
}
Expand Down