This commit is contained in:
Overtorment 2021-04-19 12:09:52 +01:00
parent d428834f16
commit b5569964dc

View File

@ -167,7 +167,7 @@ describe('LightningCustodianWallet', () => {
},
body: '{"amount": "0.01", "currency": "USD"}',
});
if (!res.body.data || !res.body.data.lightning_invoice || !res.body.data.lightning_invoice.payreq) {
if (!res.body || !res.body.data || !res.body.data.lightning_invoice || !res.body.data.lightning_invoice.payreq) {
throw new Error('Opennode problem');
}