From b798413d9011bda3548fdc3c8367d5a095bc6d60 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Mon, 18 Dec 2023 12:58:47 -0800 Subject: [PATCH] fix api errors response (#1328) --- package.json | 2 +- src/api/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 49b937a57..d2cd4e5e4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/api/api.ts b/src/api/api.ts index b7c1f8588..f1e309329 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -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) {