diff --git a/src/Poll.tsx b/src/Poll.tsx index 736c19fc..235cee68 100644 --- a/src/Poll.tsx +++ b/src/Poll.tsx @@ -208,7 +208,7 @@ class ContextlessPoll 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 };