diff --git a/src/tribler/ui/src/services/reporting.ts b/src/tribler/ui/src/services/reporting.ts index 675e7446cf..acb112a20a 100644 --- a/src/tribler/ui/src/services/reporting.ts +++ b/src/tribler/ui/src/services/reporting.ts @@ -34,7 +34,7 @@ export function formatAxiosError(error: Error | AxiosError): ErrorDict | undefin return undefined; } var handled = error.response.data?.error?.handled - if (error.response.data.error.handled == false) { + if ((handled !== undefined) && (error.response.data.error.handled == false)) { // This is an error that conforms to the internal unhandled error format: ask the user what to do handleHTTPError(error); }