Skip to content

Commit

Permalink
Bug related to null goals
Browse files Browse the repository at this point in the history
  • Loading branch information
onejgordon committed Dec 21, 2018
1 parent fae916a commit 8f73bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/analysis/AnalysisGoals.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class AnalysisGoals extends React.Component {
let g = goals[id]
let val = null;
if (g) {
val = g.assessment.toFixed(2);
val = g.assessment == null ? null : g.assessment.toFixed(2)
if (!g.annual) month_values.push(val)
}
points.push(val)
Expand Down

0 comments on commit 8f73bc8

Please sign in to comment.