Skip to content

Commit

Permalink
Fix typo in comment (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
maeriens authored Jan 5, 2025
1 parent 2b37c2b commit cd3f0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/04.context/02.problem.hook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function SearchParamsProvider({ children }: { children: React.ReactNode }) {

export function useSearchParams() {
const context = use(SearchParamsContext)
// 🐨 if there's no context value, the throw an error with a helpful error message
// 🐨 if there's no context value, then throw an error with a helpful error message
return context
}

Expand Down

0 comments on commit cd3f0d0

Please sign in to comment.