Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
cleanup set DEBUG to false
Browse files Browse the repository at this point in the history
  • Loading branch information
matt01y committed Mar 13, 2024
1 parent e577a90 commit 856dd57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/dataloaders/StudentLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export default async function studentLoader(): Promise<studentLoaderObject> {
projects[i].subject_name = subject.name;
}
}
// TODO: add submission data
return {"projects": projects};
}
2 changes: 1 addition & 1 deletion frontend/src/utils/ApiFetch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const DEBUG: boolean = true; // should always be false on the repo.
const DEBUG: boolean = false; // should always be false on the repo.

export default function apiFetch(url: string, options?: RequestInit) {
if (typeof options === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/ApiInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export interface Project {
requirements: string,
visible: string,
max_students: number,
subject_id: number
subject_id: number,
subject_name: string | undefined | null
}

0 comments on commit 856dd57

Please sign in to comment.