diff --git a/src/routes/chat/+layout.svelte b/src/routes/chat/+layout.svelte index 645ade7..8afdb11 100644 --- a/src/routes/chat/+layout.svelte +++ b/src/routes/chat/+layout.svelte @@ -361,7 +361,7 @@ const mounted = new IsMounted(); const notAtBottom = new Debounced( - () => !scrollState.arrived.bottom, + () => (mounted.current ? !scrollState.arrived.bottom : false), () => (mounted.current ? 250 : 0) ); diff --git a/src/routes/chat/+page.svelte b/src/routes/chat/+page.svelte index 4e5daef..d0a74f8 100644 --- a/src/routes/chat/+page.svelte +++ b/src/routes/chat/+page.svelte @@ -127,7 +127,7 @@ {/if} - {:else if !openRouterKeyQuery.data} + {:else if !openRouterKeyQuery.data && !openRouterKeyQuery.isLoading}

Hey there,