Skip to content

Commit a9bbc73

Browse files
committed
test(storybook): fix lint error
1 parent c055896 commit a9bbc73

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stories/index.stories.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ storiesOf("Hello World", module)
2525
onProgress(done / total);
2626
}
2727
});
28-
xhr.addEventListener("readystatechange", e => {
28+
xhr.addEventListener("readystatechange", () => {
2929
if (xhr.readyState === 4) {
30-
onSuccess(xhr.response);
30+
if (xhr.status === 200) {
31+
onSuccess(xhr.response);
32+
} else {
33+
onError();
34+
}
3135
}
3236
});
3337

0 commit comments

Comments
 (0)