diff --git a/portal-frontend/src/app/features/home/inbox/inbox-table/inbox-table.component.ts b/portal-frontend/src/app/features/home/inbox/inbox-table/inbox-table.component.ts index e7feaa9c74..9a88a357ac 100644 --- a/portal-frontend/src/app/features/home/inbox/inbox-table/inbox-table.component.ts +++ b/portal-frontend/src/app/features/home/inbox/inbox-table/inbox-table.component.ts @@ -41,7 +41,7 @@ export class InboxTableComponent { itemsPerPage: this.itemsPerPage, sortDirection: this.sortDirection, sortField: this.sortField, - tableType: this.type === 'Notices of Intent' ? 'NOI' : this.type === 'Notifications' ? 'NOTI' : 'APP', + tableType: this.getTableType(), }); } @@ -57,4 +57,15 @@ export class InboxTableComponent { await this.router.navigateByUrl(link); } } + + private getTableType(): string { + switch (this.type) { + case 'Notice of Intent': + return 'NOI'; + case 'Notification': + return 'NOTI'; + default: + return 'APP'; + } + } }