Update ESLint config and optimize error handling
This commit is contained in:
@@ -56,7 +56,7 @@ const ContactFormSection = () => {
|
||||
const resJson = await res.json();
|
||||
setError(resJson?.error || "Ein Fehler ist aufgetreten. Bitte versuche es später erneut.");
|
||||
}
|
||||
} catch (err) {
|
||||
} catch (_err) {
|
||||
setError("Serverfehler. Bitte versuche es später erneut.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user