Skip to content
Snippets Groups Projects
Commit 175b21b8 authored by Jacopo Gasparetto's avatar Jacopo Gasparetto
Browse files

Fix multi-line lint warning

parent fe9e09dc
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,10 @@ import { useContext } from "react"; ...@@ -4,8 +4,10 @@ import { useContext } from "react";
export const useOAuth = (): OAuthContextProps => { export const useOAuth = (): OAuthContextProps => {
const context = useContext(OAuthContext); const context = useContext(OAuthContext);
if (!context) { if (!context) {
throw new Error("OAuthProvider context is undefined, please verify you are \ throw new Error(
calling useOAuth() as child of a <OAuthProvider> componet."); "OAuthProvider context is undefined, please verify you are " +
"calling useOAuth() as child of a <OAuthProvider> componet."
);
} }
return context; return context;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment