Skip to content

Commit

Permalink
fix inspector (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshrieve authored Jan 8, 2023
1 parent f48f4af commit 15200de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/inspector/hooks/useLocalRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useLocalRender = () => {
return setStatus(FetchStatus.UNFETCHED);
}

const tokenURI = await response.json();
const tokenURI = await response.text();

setToken(decodeTokenURI(tokenURI));
setStatus(FetchStatus.FETCHED);
Expand Down
2 changes: 1 addition & 1 deletion packages/inspector/pages/api/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async (request: NextApiRequest, response: NextApiResponse) =>
return resolve();
}

response.json(JSON.parse(stdout));
response.send(stdout);
resolve();
})
);

0 comments on commit 15200de

Please sign in to comment.