Skip to content

Commit

Permalink
Fixed error reporter not checking for undefined handled key
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Sep 30, 2024
1 parent c04b328 commit 44b4ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler/ui/src/services/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 44b4ecd

Please sign in to comment.