diff --git a/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.html b/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.html index 181d24070b..51b86f5353 100644 --- a/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.html +++ b/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.html @@ -26,7 +26,7 @@ - +
{{ message.date | date:'mediumDate' }}
diff --git a/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.ts b/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.ts index df6c4fa67e..9d87c707d9 100644 --- a/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.ts +++ b/frontend/src/app/modules/shared/components/notification-reason/notification-reason.component.ts @@ -58,7 +58,6 @@ export class NotificationReasonComponent { const sortedMessagesAfterDates = messages.sort((a, b) => new Date(a.messageDate).valueOf() - new Date(b.messageDate).valueOf()); sortedMessagesAfterDates.forEach(message => { - if (message?.message?.length > 0) { this.textMessages.push({ message: message.message, direction: environment.bpn === message.sentBy ? 'right' : 'left', @@ -68,7 +67,6 @@ export class NotificationReasonComponent { date: message.messageDate, errorMessage: message.errorMessage, }); - } }); }