Skip to content

Commit

Permalink
fix(utils): resolves issues with error return success values always b…
Browse files Browse the repository at this point in the history
…eing true
  • Loading branch information
KenEucker committed Jan 19, 2022
1 parent dec56dc commit 11482d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function getImgurApiResponseFromResponse(
? response.data.data.error
: response.data.data;
} else {
success = false;
status =
response.data.data?.error?.code ??
response.status ??
Expand Down

0 comments on commit 11482d0

Please sign in to comment.