Skip to content

Commit

Permalink
fix api errors response (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio authored Dec 18, 2023
1 parent 0015e8d commit b798413
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opensea-js",
"version": "7.0.2",
"version": "7.0.3",
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data",
"license": "MIT",
"author": "OpenSea Developers",
Expand Down
2 changes: 1 addition & 1 deletion src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ export class OpenSeaAPI {
);

const response = await req.send();
if (!response.ok) {
if (!response.ok()) {
// If an errors array is returned, throw with the error messages.
const errors = response.bodyJson?.errors;
if (errors?.length > 0) {
Expand Down

0 comments on commit b798413

Please sign in to comment.