diff --git a/ui/src/app/pages/notifications/notifications.page.ts b/ui/src/app/pages/notifications/notifications.page.ts index dac0f16b6..7eebbd35e 100644 --- a/ui/src/app/pages/notifications/notifications.page.ts +++ b/ui/src/app/pages/notifications/notifications.page.ts @@ -68,7 +68,7 @@ export class NotificationsPage { try { await this.embassyApi.deleteNotification({ id }) this.notifications.splice(index, 1) - this.beforeCursor = this.notifications[this.notifications.length - 1].id + this.beforeCursor = this.notifications[this.notifications.length - 1]?.id } catch (e) { this.errToast.present(e) } finally {