Skip to content

Commit

Permalink
fix: Check for message in Seam API errors (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Nov 5, 2024
1 parent a21fbe8 commit b734bea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/seam/connect/error-interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const isApiErrorResponse = (
typeof data.error === 'object' &&
data.error != null &&
'type' in data.error &&
typeof data.error.type === 'string'
typeof data.error.type === 'string' &&
'message' in data.error &&
typeof data.error.message === 'string'
)
}

Expand Down

0 comments on commit b734bea

Please sign in to comment.