Update error handling for lightning previews
This commit is contained in:
parent
d667b8d455
commit
50d39295a5
@ -52,8 +52,8 @@ export class ChannelPreviewComponent implements OnInit {
|
||||
}),
|
||||
catchError((err) => {
|
||||
this.error = err;
|
||||
this.openGraphService.waitOver('channel-map');
|
||||
this.openGraphService.waitOver('channel-data');
|
||||
this.openGraphService.fail('channel-map');
|
||||
this.openGraphService.fail('channel-data');
|
||||
return of(null);
|
||||
})
|
||||
);
|
||||
|
@ -81,8 +81,8 @@ export class NodePreviewComponent implements OnInit {
|
||||
}),
|
||||
catchError(err => {
|
||||
this.error = err;
|
||||
this.openGraphService.waitOver('node-map');
|
||||
this.openGraphService.waitOver('node-data');
|
||||
this.openGraphService.fail('node-map');
|
||||
this.openGraphService.fail('node-data');
|
||||
return [{
|
||||
alias: this.publicKey,
|
||||
public_key: this.publicKey,
|
||||
|
Loading…
x
Reference in New Issue
Block a user