Skip to content

Commit

Permalink
fix: correct condition for processing response
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrzy committed Sep 18, 2023
1 parent 10418bd commit 9e05186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const bggXmlApiClient = {
try {
const resourceUrl = createResourceUrl(resource, queryParams)
const response = await client.get<T>(resourceUrl)
if (response && (response as string).includes('processed'))
if (typeof response === 'string' && (response as string).includes('processed'))
throw new Error('processing...')

return response
Expand Down

0 comments on commit 9e05186

Please sign in to comment.