Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/apisauce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const getProblemFromError = error => {
if (axios.isCancel(error)) return CANCEL_ERROR

// then check the specific error code
if (!error.code) return getProblemFromStatus(error.response.status)
if (!error.code) return getProblemFromStatus(error.response?.status)
if (TIMEOUT_ERROR_CODES.includes(error.code)) return TIMEOUT_ERROR
if (NODEJS_CONNECTION_ERROR_CODES.includes(error.code)) return CONNECTION_ERROR
return UNKNOWN_ERROR
Expand Down