From b6ed85512cbd57b180b2b4c006203c7b3bbda6ef Mon Sep 17 00:00:00 2001 From: NikitolProject Date: Sat, 11 Jan 2025 19:31:30 +0300 Subject: [PATCH] Improve error handling in ContactForm component by renaming the catch block variable for clarity. --- components/contact-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/contact-form.tsx b/components/contact-form.tsx index bce7e81..fe9cc0b 100644 --- a/components/contact-form.tsx +++ b/components/contact-form.tsx @@ -29,7 +29,7 @@ export default function ContactForm() { setStatus('success'); setFormData({ name: '', email: '', message: '' }); setTimeout(() => setStatus('idle'), 3000); - } catch (_error) { + } catch (error) { // eslint-disable-line @typescript-eslint/no-unused-vars setStatus('error'); setTimeout(() => setStatus('idle'), 3000); }