diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index 6de328e2b..49c1b7d19 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -21,6 +21,12 @@ dismissBottomModalAlert(modalAlert.id); hideNotification(modalAlert.id); if (modalAlert.closed) modalAlert.closed(); + + if (currentIndex === filteredModalAlerts.length - 1 && filteredModalAlerts.length > 1) { + currentIndex = currentIndex - 1; + } else { + currentIndex = currentIndex % filteredModalAlerts.length; + } } function showNext() { @@ -32,32 +38,59 @@ } -{#if filteredModalAlerts.length > 0} -