removed axios interceptor change

This commit is contained in:
Trial committed 2025-03-29 20:45:46 +03:00
1 parent dce461b586
commit f001419a5b
2 files changed
+1 -3

No files matched your search

-3
View File
@@ -27,9 +27,6 @@ class NetworkService {
this.axiosInstance.interceptors.request.use(
(config) => {
const currentLanguage = i18next.language || "en";
if (config.data?.email) {
config.data.email = config.data.email.toLowerCase();
}
const { authToken } = store.getState().auth;
+1
View File
@@ -65,6 +65,7 @@ const credentials = joi.object({
.string()
.trim()
.email({ tlds: { allow: false } })
.lowercase()
.messages({
"string.empty": "Email is required",
"string.email": "Must be a valid email address",