We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6a788 commit c88752cCopy full SHA for c88752c
src/tarkov-data-manager/modules/tarkov-changes.mjs
@@ -40,7 +40,7 @@ const jsonRequest = async (filename, options) => {
40
},
41
signal: options.signal,
42
}).then(apiResponse => {
43
- if (apiResponse.status !== 'success') {
+ if (apiResponse.status && apiResponse.status !== 'success') {
44
return Promise.reject(new Error('API response does not indicate success', {cause: apiResponse}));
45
}
46
return apiResponse.response_data;
0 commit comments