Merge pull request #530 from dod-ccpo/clin-total-fix-#162772340
handle empty strings when totalling clin value
This commit is contained in:
commit
3ec1123a8a
@ -40,7 +40,7 @@ export default {
|
|||||||
totalBudget: function () {
|
totalBudget: function () {
|
||||||
return [this.clin_01, this.clin_02, this.clin_03, this.clin_04].reduce(
|
return [this.clin_01, this.clin_02, this.clin_03, this.clin_04].reduce(
|
||||||
function(acc, curr) {
|
function(acc, curr) {
|
||||||
curr = curr === null ? 0 : parseInt(curr)
|
curr = !curr ? 0 : parseInt(curr)
|
||||||
return acc + curr;
|
return acc + curr;
|
||||||
}, 0
|
}, 0
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user