Skip to content

Commit

Permalink
lint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Jan 5, 2025
1 parent 34321e7 commit 0546626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/request/errorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function handleBadRequest(cause: any) {
}

if (cause && typeof cause === "object" && !Array.isArray(cause)) {
Object.entries(cause).forEach(([key, value]) => {
Object.values(cause).forEach((value) => {
if (Array.isArray(value)) {
value.forEach((err) => {
toast.error(`${err}`);
Expand All @@ -113,4 +113,4 @@ function handleBadRequest(cause: any) {
}

Notifications.BadRequest({ errs: cause });
}
}

0 comments on commit 0546626

Please sign in to comment.