Skip to content

Commit

Permalink
fix(notification): fix notification options if app doesn't configure …
Browse files Browse the repository at this point in the history
…anything
  • Loading branch information
anehx committed Jan 20, 2022
1 parent 4c8f961 commit 2bd9f42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/services/notification.js
Expand Up @@ -15,7 +15,9 @@ function notification(status) {
export default class NotificationService extends Service {
_notification(message, options) {
const n = UIkit.notification(
Object.assign(config["ember-uikit"]?.notification, options, { message })
Object.assign(config["ember-uikit"]?.notification ?? {}, options, {
message,
})
);

return n?.$el
Expand Down

0 comments on commit 2bd9f42

Please sign in to comment.