Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Fix error status check
Browse files Browse the repository at this point in the history
  • Loading branch information
zackify committed Nov 6, 2017
1 parent d065569 commit 157dc9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navjobs/upload",
"version": "3.1.0",
"version": "3.1.1",
"description": "HOC that displays a file upload on clicking children",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/request/register-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default ({ xhr, progress, resolve }) => {
}
resolve({
response,
error: xhr.status !== 200 && xhr.status !== 201,
error: xhr.status < 200 || xhr.status >= 300,
status: xhr.status,
});
});
Expand Down

0 comments on commit 157dc9a

Please sign in to comment.