style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-19 15:47:30 +00:00
parent 902518f9b1
commit 3760b3f6f3
2 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ import { fetchStudents } from './students.js';
import { ServerErrorException } from '../exceptions/server-error-exception.js';
import { BadRequestException } from '../exceptions/bad-request-exception.js';
import { ConflictException } from '../exceptions/conflict-exception.js';
import { PostgreSqlExceptionConverter } from "@mikro-orm/postgresql";
import { PostgreSqlExceptionConverter } from '@mikro-orm/postgresql';
export async function fetchAssignment(classid: string, assignmentNumber: number): Promise<Assignment> {
const classRepository = getClassRepository();

View file

@ -102,15 +102,15 @@
{ cid: clsId, an: num },
{
onSuccess: (data) => {
if (data?.assignment){
if (data?.assignment) {
window.location.reload();
}
showSnackbar(t("success") ,"success");
showSnackbar(t("success"), "success");
},
onError: (e) => {
showSnackbar(t("failed") + ": " + e.response.data.error || e.message, "error");
},
}
},
);
}