Skip to content

Commit

Permalink
minor typefix
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 10, 2024
1 parent e2bb687 commit 386e23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/use-run-tsx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const useRunTsx = ({
try {
globalThis.React = React

const module = evalCompiledJs(compiledJs)
const module = evalCompiledJs(compiledJs!)

if (Object.keys(module.exports).length > 1) {
throw new Error(
Expand Down

0 comments on commit 386e23f

Please sign in to comment.