Skip to content

Commit

Permalink
fix stack spelling in ApiError file
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshchoudhary committed Nov 11, 2023
1 parent 7379b31 commit ac62010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/ApiError.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class ApiError extends Error {
this.success = false;
this.errors = errors

if (statck) {
this.stack = statck
if (stack) {
this.stack = stack
} else{
Error.captureStackTrace(this, this.constructor)
}
Expand Down

0 comments on commit ac62010

Please sign in to comment.