Just in case

This commit is contained in:
Wietse Wind
2023-10-08 23:14:45 +02:00
parent 26b875246d
commit 90804f65da

View File

@@ -115,7 +115,7 @@ const onLedger = async ({
/**
* Deal with transactions & fire events
*/
waitForLedgerReady(ledger.ledger_index).then(async () => {
waitForLedgerReady(ledger.ledger_index)?.then(async () => {
if (ledgerData.length > 0) {
const [binary, json] = await Promise.all(ledgerData)
const sequetiallyMappedLedgerTxEvents = (json?.transactions || []).map(tx => {
@@ -144,7 +144,6 @@ const onLedger = async ({
});
}
})
}
}
}