Skip to content

Commit

Permalink
case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Apr 14, 2024
1 parent b8e0e33 commit 5a13d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/api/baseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const axiosQuery = async ({ path, method = 'get', params, data, hideToast
const shouldRetry = (error, path) => {
// Check if the path starts with 'List', error qualifies for a retry, and payload message is 'Backend call failure'
return (
path.startsWith('/List') &&
path.toLower().startsWith('/list') &&
(!error.response || error.response.status >= 500) &&
error.response?.data === 'Backend call failure'
)
Expand Down

0 comments on commit 5a13d28

Please sign in to comment.