Skip to content

Commit

Permalink
Fix typo in useCopilot error message (#285)
Browse files Browse the repository at this point in the history
Co-authored-by: klougod <brunoomagalhaes98@gmail.com>
  • Loading branch information
klougod and klougod authored Mar 6, 2024
1 parent 3e5d3cc commit caca214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/CopilotProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const CopilotProvider = ({
export const useCopilot = () => {
const value = useContext(CopilotContext);
if (value == null) {
throw new Error("You must wrap your app inside CopilotPorivder");
throw new Error("You must wrap your app inside CopilotProvider");
}

return value;
Expand Down

0 comments on commit caca214

Please sign in to comment.