Skip to content

Commit

Permalink
Show MHR table statuses as per UXA
Browse files Browse the repository at this point in the history
  • Loading branch information
dimak1 committed Oct 17, 2023
1 parent 2451127 commit 288a972
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ppr-ui/src/composables/exemption/useExemptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const useExemptions = () => {
return mhrRegSummary.changes?.filter(
reg =>
reg.registrationDescription === APIMhrDescriptionTypes.RESIDENTIAL_EXEMPTION &&
reg.statusType === MhApiStatusTypes.EXEMPT
(reg.statusType === MhApiStatusTypes.EXEMPT || reg.statusType === MhApiStatusTypes.ACTIVE)
).length > 0
}

Expand Down
1 change: 0 additions & 1 deletion ppr-ui/src/composables/useRegistration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const useRegistration = (setSort: RegistrationSortIF) => {
if (!status) return UIStatusTypes.DRAFT
if (status === MhApiStatusTypes.FROZEN) return MhUIStatusTypes.ACTIVE
if (!isChild && status === MhApiStatusTypes.EXEMPT) return MhUIStatusTypes.EXEMPT
if (isChild && (status === MhApiStatusTypes.CANCELLED || status === MhApiStatusTypes.EXEMPT)) return ''
return isPpr ? PprAPIToUIStatusTypesMap[status] : MhrAPIToUIStatusTypesMap[status]
}

Expand Down

0 comments on commit 288a972

Please sign in to comment.