Skip to content

Commit

Permalink
Actual bugfix for LINK_RATES flag off
Browse files Browse the repository at this point in the history
  • Loading branch information
haworku committed Apr 18, 2024
1 parent 07d292d commit 7aa87f5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ function makeDocumentDateTable(
Object.keys(revisionsLookup).forEach(
(revisionId: string, index: number) => {
const revision = revisionsLookup[revisionId]
if (index === 1) {
// second most recent revision

const previousSubmission = getDateAdded(revision) // used in UploadedDocumentsTable to determine if we should show NEW tag
if (previousSubmission)
if (previousSubmission && !lookupTable['previousSubmissionDate'])
lookupTable['previousSubmissionDate'] = previousSubmission
}

const allDocuments = getAllDocuments(revision.formData)
allDocuments.forEach((doc) => {
Expand Down

0 comments on commit 7aa87f5

Please sign in to comment.