Skip to content

Commit

Permalink
Type Mapping (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Sep 22, 2021
1 parent c6b3e08 commit 0acbb5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ export default class AffiliatedEntityTable extends Mixins(DateMixin) {
}
/** Returns the type of the affiliation */
private type (item: Business): AffiliationTypes {
private type (item: Business): string {
switch (true) {
case (this.isNameRequest(item.corpType.code)):
return AffiliationTypes.NAME_REQUEST
case this.isTemporaryBusinessRegistration(item.corpType.code):
return AffiliationTypes.INCORPORATION_APPLICATION
default:
return AffiliationTypes.CORPORATION
return this.typeDescription(item.corpType.code as CorpTypeCd)
}
}
Expand Down

0 comments on commit 0acbb5e

Please sign in to comment.