diff --git a/src/lib/components/billing/gradientBanner.svelte b/src/lib/components/billing/gradientBanner.svelte index 7a3adca7a..27c58ce62 100644 --- a/src/lib/components/billing/gradientBanner.svelte +++ b/src/lib/components/billing/gradientBanner.svelte @@ -16,7 +16,7 @@ }); const setNavigationHeight = () => { - const alertHeight = container?.getBoundingClientRect().height || 0; + const alertHeight = container?.getBoundingClientRect()?.height || 0; const { header, sidebar, content } = queryLayoutElements(); const headerHeight = header?.getBoundingClientRect().height || 0; const offset = alertHeight + (!isTabletViewport && header ? headerHeight : 0);