diff options
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/repositories/notification.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index a8978cc01b..b484c43c5e 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -46,8 +46,8 @@ export class NotificationRepository extends Repository<Notification> { } : {}), ...(notification.type === 'app' ? { body: notification.customBody, - header: notification.customHeader || token!.name, - icon: notification.customIcon || token!.iconUrl, + header: notification.customHeader || token?.name, + icon: notification.customIcon || token?.iconUrl, } : {}), }); } |