Skip to content

Commit

Permalink
fix(ui/system/create-context.tsx): errorMessage로 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sukvvon committed Jun 2, 2024
1 parent b3882e9 commit becc904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ui/system/src/create-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type CreatContextOptions<CreateContextDefaultValue> = {
name?: string;
hookName?: string;
providerName?: string;
errorEessage?: string;
errorMessage?: string;
defaultValue?: CreateContextDefaultValue;
};

Expand All @@ -30,7 +30,7 @@ export function createContext<CreateContextDefaultValue>(
name,
hookName = 'useContext',
providerName = 'Provider',
errorEessage,
errorMessage,
defaultValue,
} = options;

Expand All @@ -45,7 +45,7 @@ export function createContext<CreateContextDefaultValue>(

if (!context) {
const error = new Error(
errorEessage ?? getErrorMessage(hookName, providerName),
errorMessage ?? getErrorMessage(hookName, providerName),
);

error.name = 'ContextError';
Expand Down

0 comments on commit becc904

Please sign in to comment.