Update nwcjs.js

This commit is contained in:
supertestnet authored and GitHub committed 2024-05-27 11:25:17 -05:00
1 parent 471e40b7b3
commit 9c0c1bae5f
1 file changed
+1 -1
+1 -1
View File
@@ -175,7 +175,7 @@ var nwcjs = {
},
didPaymentSucceed: async ( nwc_obj, invoice, seconds_of_delay_tolerable = 3 ) => {
var invoice_info = await nwcjs.checkInvoice( nwc_obj, invoice, seconds_of_delay_tolerable );
if ( invoice_info && !( "error" in invoice_info ) ) return true;
if ( invoice_info && !( "error" in invoice_info ) ) return invoice_info[ "result" ][ "preimage" ];
return false;
},
tryToPayInvoice: async ( nwc_obj, invoice, amnt ) => {