Skip to content

Commit

Permalink
docs: fixup useConnectionStatus snippet for svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
pbohlman committed Apr 2, 2024
1 parent 9640abd commit 578809b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/pages/frameworks/svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ The `useConnectionStatus` hook subscribes to changes to the connection status of
token: import.meta.env.VITE_TRIPLIT_TOKEN,
});
const connectionStatus = useConnectionStatus(client);
const connection = useConnectionStatus(client);
</script>
<div>
{#if connectionStatus === 'OPEN'}
{#if connection.status === 'OPEN'}
<p>The client is connected</p>
{:else}
<p>The client is not connected</p>
Expand Down

0 comments on commit 578809b

Please sign in to comment.