Skip to content

Commit

Permalink
BUGFIG: Remove parseInt() for previous year value to allow non-number…
Browse files Browse the repository at this point in the history
…s to display as empty (#139767)
  • Loading branch information
gmrabian authored Sep 18, 2024
1 parent 26eed16 commit 0805577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ui-src/src/components/fields/Integer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getPrevYearValue = (question, lastYearFormData) => {

// The first will always be correct
if (matchingQuestion[0]) {
prevYearValue = parseInt(matchingQuestion[0].questions[0].answer?.entry);
prevYearValue = matchingQuestion[0].questions[0].answer?.entry;
}
}
return prevYearValue;
Expand Down

0 comments on commit 0805577

Please sign in to comment.