Skip to content

Commit

Permalink
Fix duplicateRegData.status->declaration.regStatus
Browse files Browse the repository at this point in the history
The way we determine status for duplicateRegData should be the same as
the actualData. So we needed to keep things consistent

#7439
  • Loading branch information
Siyasanga committed Aug 26, 2024
1 parent efe6441 commit 8e29208
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,7 @@ export const DuplicateFormTabs = (props: IProps) => {
)

const duplicateRegData = {
status: eventData.history.find((data: History) => data.action === null)
.regStatus as RegStatus,
status: props.declaration.registrationStatus,
type: capitalize(eventData.registration.type),
trackingId: eventData.registration.trackingId,
registrationNumber: eventData.registration?.registrationNumber,
Expand Down Expand Up @@ -693,6 +692,7 @@ export const DuplicateFormTabs = (props: IProps) => {
{intl.formatMessage(constantsMessages.status)}
</Text>
),

heading: {
right: String(duplicateRegData.trackingId),
left: String(actualRegData.trackingId)
Expand Down

0 comments on commit 8e29208

Please sign in to comment.