Skip to content

Commit

Permalink
fix: assert non null elements on notification component
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Jan 27, 2023
1 parent 6620637 commit 9950d98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class NotificationsComponent implements OnDestroy {

setTimeout(() => {
// Show the notification
new BSNotification(document.getElementById(newNotification.id), {
new BSNotification(document.getElementById(newNotification.id)!, {
timeout: notification.duration
}).show();

Expand All @@ -70,6 +70,6 @@ export class NotificationsComponent implements OnDestroy {
* @param id
*/
hideNotification(id: string): void {
BSNotification.getInstance(document.getElementById(id))?.hide();
BSNotification.getInstance(document.getElementById(id)!)?.hide();
}
}

0 comments on commit 9950d98

Please sign in to comment.