diff --git a/modules/twinklearv.js b/modules/twinklearv.js index 50e6647cc..d67f756d5 100644 --- a/modules/twinklearv.js +++ b/modules/twinklearv.js @@ -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 }); }