Fakultas Ilmu Komputer UI

Commit 52658659 authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

seperate if block to new line

parent eaa48fbb
Pipeline #24371 passed with stages
in 5 minutes and 28 seconds
......@@ -24,13 +24,20 @@ export default class App extends React.Component {
const data = Storage.get('user-data');
if (data.is_staff) {
return 'admin';
} if (data.supervisor) {
}
if (data.supervisor) {
return 'supervisor';
} if (data.student) {
}
if (data.student) {
return 'student';
} if (data.company) {
}
if (data.company) {
return 'company';
}
return 'error';
}
return 'not-logged-in';
......
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