TF-105 fixed bug logic error 422

This commit is contained in:
AmirHossein Mahmoodi
2023-09-30 11:09:15 +03:30
parent 62ce40fbb2
commit d221eea9b3

View File

@@ -48,7 +48,7 @@ const isServerError = status => status >= 500 && status <= 599;
const isClientError = status => status >= 400 && status <= 499;
const errorLogic = (response, t, notification) => {
if (notification) ErrorNotification(t, response.status)
if (notification) ErrorNotification(t, response.status, response.data.message)
}
const errorValidation = (response, t, notification) => {
if (notification) {