We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b65ccda commit f66f865Copy full SHA for f66f865
express/frontend/src/tools/adapter/AdapterDetails.tsx
@@ -8,10 +8,14 @@ import {
8
useParams,
9
} from "react-router-dom";
10
import { AdapterContextProvider } from "../../contexts/AdapterContext";
11
+import { useUserToken } from "../../contexts/UserContext";
12
13
const LinkRouter = (props: any) => <Link {...props} component={RouterLink} />;
14
15
export function AdapterDetails() {
16
+ // ensure user is logged in, otherwise AdapterContextProvider will fail to load the adapter info
17
+ useUserToken();
18
+
19
const matches = useMatches();
20
const pathNames = matches[matches.length - 1].pathname
21
.replace(/\/~.+?$/g, "")
0 commit comments