Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
Add await to processResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejas Kumar committed Aug 8, 2018
1 parent cdf1bf0 commit 4841466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Poll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class ContextlessPoll<TData, TError> extends React.Component<
});
const response = await fetch(request);

const responseBody = processResponse(response);
const responseBody = await processResponse(response);

if (!this.isResponseOk(response)) {
const error = { message: `${response.status} ${response.statusText}`, data: responseBody };
Expand Down

0 comments on commit 4841466

Please sign in to comment.