fix(frontend/backend): suppress unauth toast on init, fix admin-login DTO validation and RSC directives
Deploy Canina / deploy (push) Failing after 29s

This commit is contained in:
parsa aghaei committed 2026-08-08 18:02:43 +03:30
1 parent acc662fce8
commit adbfa60343
6 files changed
+25 -4

No files matched your search

+2 -2
View File
@@ -78,8 +78,8 @@ api.interceptors.response.use(
}
}
// Show formatted Farsi toast if not explicitly suppressed and not 404
if (!error.config?.hideErrorToast && status !== 404) {
// Show formatted Farsi toast if not explicitly suppressed and not 401/403/404
if (!error.config?.hideErrorToast && status !== 401 && status !== 403 && status !== 404) {
if (responseData?.details && Array.isArray(responseData.details) && responseData.details.length > 0) {
const firstDetailMessage = responseData.details[0]?.message || farsiMessage;
toast.error(firstDetailMessage);