diff --git a/src/app/units/Blockchain.ts b/src/app/units/Blockchain.ts index 0a04b90..30b8105 100644 --- a/src/app/units/Blockchain.ts +++ b/src/app/units/Blockchain.ts @@ -190,7 +190,7 @@ export class Blockchain extends Unit { this.logging.debug({peers, chain}) - this.approvedChain = chain.map((item: BlockResourceItem) => new Block(item)) + this.approvedChain = (chain || []).map((item: BlockResourceItem) => new Block(item)) this.peers = peers || [] }