We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 792aa30 + 7b6baf2 commit 1d3c82bCopy full SHA for 1d3c82b
src/components/file-upload.jsx
@@ -232,7 +232,7 @@ export default class FileUpload extends React.Component {
232
233
var tempTable = {};
234
const yearCountForLoopLength = (!supportDatesAfterToday &&
235
- retiredate<= new Date().getFullYear()) ? retiredate : new Date().getFullYear()
+ retiredate<= new Date().getFullYear()) ? retiredate : new Date().getFullYear() - 1
236
if (birthdate !== undefined && retiredate !== undefined) {
237
for (var i = birthdate; i <= yearCountForLoopLength; i++) {
238
if (Object.keys(earningsValue).includes(String(i))) {
0 commit comments