CFE-18 Merge branch 'bugfix/CFE-18_error_handler' into 'develop'

This commit is contained in:
AmirHossein Mahmoodi
2023-10-02 06:55:30 +00:00
6 changed files with 6 additions and 6 deletions

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) {