diff --git a/themes/lucentui/js/app.js b/themes/lucentui/js/app.js index 9d85ad868..b148989a8 100644 --- a/themes/lucentui/js/app.js +++ b/themes/lucentui/js/app.js @@ -24,7 +24,9 @@ Alpine.store('notifications', { }, addNotification(notification) { - notification = notification[0]; + // Livewire dispatches pass args as an array; unwrap if needed. + if (Array.isArray(notification)) notification = notification[0]; + if (!notification || typeof notification !== 'object') return; notification.show = false; notification.id = Date.now() + Math.floor(Math.random() * 1000); notification.type = notification.type || 'success'; diff --git a/themes/lucentui/views/auth/login.blade.php b/themes/lucentui/views/auth/login.blade.php index 75c408ac3..f8c702900 100644 --- a/themes/lucentui/views/auth/login.blade.php +++ b/themes/lucentui/views/auth/login.blade.php @@ -1,6 +1,6 @@ -
-