Skip to content

Commit

Permalink
fix: rpc.discover should return json
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas authored Aug 14, 2019
1 parent 5c466b5 commit 96f9828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetchSchemaFromRpcDiscover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export default async (url: string) => {
if (response.status === 404) {
throw new Error("404: Not Found");
}
return response.text();
const responseJSON = await response.json();
return responseJSON.result;
};

0 comments on commit 96f9828

Please sign in to comment.