chore(workspace): eradicate all tsc errors and eslint warnings across frontend, admin, and backend
Deploy Canina / deploy (push) Failing after 29s
Deploy Canina / deploy (push) Failing after 29s
This commit is contained in:
1 parent
4659a7b1de
commit
9f11d8fb2d
98 files changed
+1272
-1009
No files matched your search
@@ -56,9 +56,10 @@ export default function ContactFormClient() {
|
||||
setPhone("");
|
||||
setSubject("");
|
||||
setMessage("");
|
||||
} catch (err: any) {
|
||||
} catch (err: unknown) {
|
||||
const errorObj = err as { response?: { data?: { message?: string } } };
|
||||
setError(
|
||||
err.response?.data?.message || "خطایی در ثبت پیام رخ داده است. لطفاً مجدداً تلاش کنید."
|
||||
errorObj.response?.data?.message || "خطایی در ثبت پیام رخ داده است. لطفاً مجدداً تلاش کنید."
|
||||
);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
|
||||
Reference in new issue
Block a user