diff --git a/examples/simple-setup/README.md b/examples/simple-setup/README.md index 74f48d74..9479a42e 100644 --- a/examples/simple-setup/README.md +++ b/examples/simple-setup/README.md @@ -1,6 +1,6 @@ # Simple Setup Example -This example demonstrates a simple setup of StoryKit; +This example demonstrates a simple setup of StoryKit: - wraps the app with the `StoryKitProvider` and specifies the chain in [`app/Providers.tsx`](./app/Providers.tsx) - uses the `IpProvider` to pass the IP data to child components in [`app/page.tsx`](./app/page.tsx) - the [`IpHeader`](./app/IpHeader.tsx) component uses the `IpProviders` `useIpContext` hook to access the IP data diff --git a/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx b/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx index ed1079d6..635bb657 100644 --- a/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx +++ b/packages/storykit/src/providers/StoryKitProvider/StoryKitProvider.tsx @@ -70,7 +70,7 @@ export const StoryKitProvider = ({ export const useStoryKitContext = () => { const context = React.useContext(StoryKitContext) if (!context) { - throw new Error("useStoryKitContext must be used within an StoryKitProvider") + throw new Error("useStoryKitContext must be used within a StoryKitProvider") } return context }