mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 08:14:18 +00:00
Fix error string
This commit is contained in:
parent
5539a5ffb3
commit
98bcca2fe8
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ export function useStarredConsumer(): StarredContextData {
|
||||||
const context = useContext(StarredContext)
|
const context = useContext(StarredContext)
|
||||||
|
|
||||||
if(context === null) {
|
if(context === null) {
|
||||||
throw new Error("useStarContext used outside a StarredContext.")
|
throw new Error("useStarredConsumer used outside a StarredContext.")
|
||||||
}
|
}
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
Loading…
Reference in a new issue