style: fix linting issues met Prettier
This commit is contained in:
parent
1c118a42f3
commit
74099fedc7
2 changed files with 2 additions and 3 deletions
|
@ -103,7 +103,6 @@ function hasDuplicates(arr: string[]): boolean {
|
|||
export async function putAssignment(classid: string, id: number, assignmentData: Partial<AssignmentDTO>): Promise<AssignmentDTO> {
|
||||
const assignment = await fetchAssignment(classid, id);
|
||||
|
||||
|
||||
if (assignmentData.groups) {
|
||||
if (hasDuplicates(assignmentData.groups.flat() as string[])) {
|
||||
throw new BadRequestException('Student can only be in one group');
|
||||
|
|
|
@ -149,7 +149,7 @@
|
|||
const message = err.response?.data?.error || err.message || t("unknownError");
|
||||
showSnackbar(t("failed") + ": " + message, "error");
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue