Skip to content

Commit b798413

Browse files
authored
fix api errors response (#1328)
1 parent 0015e8d commit b798413

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensea-js",
3-
"version": "7.0.2",
3+
"version": "7.0.3",
44
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data",
55
"license": "MIT",
66
"author": "OpenSea Developers",

src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ export class OpenSeaAPI {
620620
);
621621

622622
const response = await req.send();
623-
if (!response.ok) {
623+
if (!response.ok()) {
624624
// If an errors array is returned, throw with the error messages.
625625
const errors = response.bodyJson?.errors;
626626
if (errors?.length > 0) {

0 commit comments

Comments
 (0)