Skip to content

Commit 1d3c82b

Browse files
authored
Do not provide an input for current year of earnings (#143)
Do not provide an input for current year of earnings
2 parents 792aa30 + 7b6baf2 commit 1d3c82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/file-upload.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default class FileUpload extends React.Component {
232232

233233
var tempTable = {};
234234
const yearCountForLoopLength = (!supportDatesAfterToday &&
235-
retiredate<= new Date().getFullYear()) ? retiredate : new Date().getFullYear()
235+
retiredate<= new Date().getFullYear()) ? retiredate : new Date().getFullYear() - 1
236236
if (birthdate !== undefined && retiredate !== undefined) {
237237
for (var i = birthdate; i <= yearCountForLoopLength; i++) {
238238
if (Object.keys(earningsValue).includes(String(i))) {

0 commit comments

Comments
 (0)