Skip to content

Commit

Permalink
typo in error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
TollensWP authored Nov 13, 2024
1 parent 0976ddd commit a7b6e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/twinklearv.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ Twinkle.arv.callback.getAn3ReportData = function(input) {
confirmations: data.confirmations
};
}).catch((errorData) => {
if (typeof errorData !== 'object' || Object.prototype.hasOwnProperty.call(errorData, 'message')) {
if (typeof errorData !== 'object' || !Object.prototype.hasOwnProperty.call(errorData, 'message')) {
return Promise.reject({ message: 'Unknown error: ' + errorData });
}

Expand Down

0 comments on commit a7b6e29

Please sign in to comment.