diff --git a/js/coinbin.js b/js/coinbin.js index b3b629b..ba3d5a5 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1086,7 +1086,7 @@ $(document).ready(function() { $("#redeemFromStatus").removeClass('hidden').html(' Unexpected error, unable to retrieve unspent outputs!'); }, success: function(data) { - if(data.txrefs) { + if (data.address) { // address field will always be present, txrefs is only present if there are UTXOs $("#redeemFromAddress").removeClass('hidden').html( ' Retrieved unspent inputs from address '+redeem.addr+''); for(var i in data.txrefs){