Skip to content

Commit

Permalink
Better sotry
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Apr 5, 2023
1 parent 851d9ed commit 55eeb05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/renderers/react/template/stories/decorators.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const Context: StoryObj<typeof Component> = {
),
],
render: function Render(args, context) {
const arg = useContext(TestContext);
if (!arg) throw new Error('Arg not set');
const value = useContext(TestContext);
if (!value) throw new Error('TestContext not set, decorator did not run!');
return <p>Story</p>;
},
};

0 comments on commit 55eeb05

Please sign in to comment.