We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18fd78 commit d1381a6Copy full SHA for d1381a6
Frontend/src/App.js
@@ -48,7 +48,9 @@ const AIChatWrapper = () => {
48
49
const ChatWrapper = () => {
50
const location = useLocation();
51
- return location.pathname === "/collaboration" ? <CommunicationWindow /> : null;
+ return location.pathname === "/collaboration" ? (
52
+ <CommunicationWindow />
53
+ ) : null;
54
};
55
56
function App() {
Frontend/src/User/UserStateController.js
@@ -37,6 +37,8 @@ async function getUserAdminStatus() {
37
const result = await getUserData(userId);
38
39
console.log(result.data.user.isAdmin);
40
+
41
+ return result.data.user.isAdmin;
42
}
43
44
return false;
0 commit comments