@ -143,6 +143,7 @@ onUpdated(() => {
const flashes = JSON.parse(app.dataset.flashes)
if (!Array.isArray(flashes)) {
for (const key in flashes) {
const notificationType = key === 'danger' ? 'Error' : capitalize(key);
@ -150,6 +151,7 @@ onUpdated(() => {
notification[`show${notificationType}Notification`](flashText);
}
app.dataset.flashes = "";
})