Skip to content

Commit 2c11691

Browse files
committed
update: reactivity.
1 parent ee4a6d3 commit 2c11691

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/components/bottomModalAlert.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import { upgradeURL } from '$lib/stores/billing';
1616
import { addBottomModalAlerts } from '$routes/(console)/bottomAlerts';
1717
import { project } from '$routes/(console)/project-[region]-[project]/store';
18-
import { page } from '$app/state';
18+
import { page } from '$app/stores';
1919
import { Click, trackEvent } from '$lib/actions/analytics';
2020
import { goto } from '$app/navigation';
2121
import { Typography } from '@appwrite.io/pink-svelte';
@@ -51,7 +51,7 @@
5151
});
5252
}
5353
54-
$: filteredModalAlerts = filterModalAlerts($bottomModalAlertsConfig.alerts, page.route.id);
54+
$: filteredModalAlerts = filterModalAlerts($bottomModalAlertsConfig.alerts, $page.route.id);
5555
5656
$: currentModalAlert = filteredModalAlerts[currentIndex] as BottomModalAlertItem;
5757
@@ -161,7 +161,7 @@
161161
});
162162
</script>
163163

164-
{#if filteredModalAlerts.length > 0 && currentModalAlert && !page.url.pathname.includes('console/onboarding')}
164+
{#if filteredModalAlerts.length > 0 && currentModalAlert && !$page.url.pathname.includes('console/onboarding')}
165165
{@const shouldShowUpgrade = showUpgrade()}
166166
<div class="main-alert-wrapper is-not-mobile">
167167
<div class="alert-container">

0 commit comments

Comments
 (0)