fixed bug
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
errorAccessDeniedToast,
|
||||
errorClientToast,
|
||||
errorLogicToast,
|
||||
errorMaxLengthToast,
|
||||
errorServerToast,
|
||||
errorTooManyToast,
|
||||
errorUnauthorizedToast,
|
||||
@@ -26,6 +27,9 @@ const errorClient = (response, notification, toastContainer, logout) => {
|
||||
case 403:
|
||||
if (notification) errorAccessDeniedToast(response.data.message, toastContainer);
|
||||
break;
|
||||
case 413:
|
||||
if (notification) errorMaxLengthToast(response.data.message, toastContainer);
|
||||
break;
|
||||
case 422:
|
||||
if ("type" in response.data) {
|
||||
if (Array.isArray(response.data.message)) {
|
||||
|
||||
Reference in New Issue
Block a user