From 35373e0defc44ddbd1123bbe796082377b2285fd Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Fri, 27 Sep 2024 15:50:17 +0530 Subject: [PATCH 1/2] update: hide promotions logic. --- src/lib/components/bottomModalAlert.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index c0623b24d..bab0c7f5e 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -52,7 +52,7 @@ function handleClose() { const modalAlert = currentModalAlert; dismissBottomModalAlert(modalAlert.id); - hideNotification(modalAlert.id); + hideNotification(modalAlert.id, { coolOffPeriod: (24 * 365) }); if (modalAlert.closed) modalAlert.closed(); if (currentIndex === filteredModalAlerts.length - 1 && filteredModalAlerts.length > 1) { From f4ea908eb8a0dac03003a523ebc5198fe056f9d8 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Fri, 27 Sep 2024 15:52:40 +0530 Subject: [PATCH 2/2] ran: formatter --- src/lib/components/bottomModalAlert.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index bab0c7f5e..ec070db93 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -52,7 +52,7 @@ function handleClose() { const modalAlert = currentModalAlert; dismissBottomModalAlert(modalAlert.id); - hideNotification(modalAlert.id, { coolOffPeriod: (24 * 365) }); + hideNotification(modalAlert.id, { coolOffPeriod: 24 * 365 }); if (modalAlert.closed) modalAlert.closed(); if (currentIndex === filteredModalAlerts.length - 1 && filteredModalAlerts.length > 1) {