changed code formatting
This commit is contained in:
@@ -122,7 +122,6 @@ export const MainForm = () => {
|
||||
|
||||
const handleUserSelection = (username: string | null) => {
|
||||
if (username == null || username == "") {
|
||||
console.log("Username must be set!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -161,12 +160,16 @@ export const MainForm = () => {
|
||||
} else {
|
||||
setMsg({
|
||||
type: "danger",
|
||||
headline: t("error"),
|
||||
headline: t("form-submission-failed"),
|
||||
text: result.error || t("form-submission-failed"),
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
console.log("remove");
|
||||
} catch (error) {
|
||||
setMsg({
|
||||
type: "danger",
|
||||
headline: t("error"),
|
||||
text: t("form-submission-failed"),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"user": "Benutzer",
|
||||
"next-id": "Nächste Eintragsnummer: ",
|
||||
"form-submitted-successfully": "Formular erfolgreich übermittelt!",
|
||||
"orm-submission-failed": "Formularübermittlung fehlgeschlagen.",
|
||||
"form-submission-failed": "Formularübermittlung fehlgeschlagen.",
|
||||
"success": "Erfolg",
|
||||
"error": "Fehler",
|
||||
"cash": "Bar",
|
||||
|
||||
@@ -7,9 +7,7 @@ export const options = {
|
||||
};
|
||||
|
||||
export default function () {
|
||||
http.get(
|
||||
"http://localhost:8004/default/confirm-user?username=TheisGaedigk",
|
||||
);
|
||||
http.get("http://localhost:8004/default/confirm-user?username=TheisGaedigk");
|
||||
http.get("http://localhost:8004/default/users");
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user