style: format

This commit is contained in:
laurejablonski 2025-04-06 15:28:09 +02:00
parent c47f84ed70
commit dd08738f99
2 changed files with 7 additions and 9 deletions

View file

@ -80,9 +80,8 @@
return true;
} else if (value !== undefined && validate(value) && version(value) === 4) {
return true;
}
return t("invalidFormat");
}
return t("invalidFormat");
},
];
@ -90,7 +89,7 @@
const { mutate } = useCreateJoinRequestMutation();
// Function called when a student submits a code to join a class
function submitCode() : void {
function submitCode(): void {
// Check if the code is valid
if (code.value !== undefined && validate(code.value) && version(code.value) === 4) {
mutate(
@ -114,11 +113,11 @@
color: "success",
});
function showSnackbar(message: string, color: string) : void {
function showSnackbar(message: string, color: string): void {
snackbar.value.message = message;
snackbar.value.color = color;
snackbar.value.visible = true;
};
}
</script>
<template>
<main>