Fakultas Ilmu Komputer UI

Commit 57593cf4 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Merge branch 'master' of...

Merge branch 'master' of https://gitlab.cs.ui.ac.id/functional-programming/diskuy-frontend into deploy
parents eb09bd83 4c98beec
......@@ -9,7 +9,7 @@ import AuthService from '../../helpers/services/auth.service';
export default function TopicList(props) {
const [topics, setTopics] = useState([]);
const isAdmin = AuthService.getCurrentUser().data.role
const isAdmin = loggedIn ? AuthService.getCurrentUser().data.role : "unregistered";
useEffect(() => {
const fetch = async () => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment