We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56c98de + 03a1815 commit dff9936Copy full SHA for dff9936
src/projects/detail/components/ProjectSpecSidebar.jsx
@@ -34,7 +34,11 @@ const calcProgress = (project, subSection) => {
34
return [validScreens.length, screens.length]//TODO we should do range comparison here
35
} else {
36
// assuming there is only one question
37
- return [_.isEmpty(_.get(project, subSection.fieldName, null)) ? 0 : 1, 1]
+ let val = _.get(project, subSection.fieldName, null)
38
+ if (val && typeof val.trim === 'function') {
39
+ val = val.trim()
40
+ }
41
+ return [_.isEmpty(val) ? 0 : 1, 1]
42
}
43
44
0 commit comments