Skip to content

Commit

Permalink
test(storybook): fix lint error (#4)
Browse files Browse the repository at this point in the history
test(storybook): fix lint error
  • Loading branch information
Kunduin authored Jun 17, 2019
2 parents 3e13803 + a9bbc73 commit eddb974
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stories/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ storiesOf("Hello World", module)
onProgress(done / total);
}
});
xhr.addEventListener("readystatechange", e => {
xhr.addEventListener("readystatechange", () => {
if (xhr.readyState === 4) {
onSuccess(xhr.response);
if (xhr.status === 200) {
onSuccess(xhr.response);
} else {
onError();
}
}
});

Expand Down

0 comments on commit eddb974

Please sign in to comment.