Fix typo in error message
This commit is contained in:
@@ -70,7 +70,7 @@ export function useToken(){
|
|||||||
const context = useContext(TokenContext);
|
const context = useContext(TokenContext);
|
||||||
|
|
||||||
if(!context){
|
if(!context){
|
||||||
throw new Error("useTOken must be called inside a TokenProvider");
|
throw new Error("useToken must be called inside a TokenProvider");
|
||||||
}
|
}
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
|
|||||||
Reference in New Issue
Block a user