Update error handling for lightning previews

This commit is contained in:
Mononaut 2022-08-12 17:14:45 +00:00
parent d667b8d455
commit 50d39295a5
No known key found for this signature in database
GPG Key ID: 61B952CAF4838F94
2 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,8 @@ export class ChannelPreviewComponent implements OnInit {
}), }),
catchError((err) => { catchError((err) => {
this.error = err; this.error = err;
this.openGraphService.waitOver('channel-map'); this.openGraphService.fail('channel-map');
this.openGraphService.waitOver('channel-data'); this.openGraphService.fail('channel-data');
return of(null); return of(null);
}) })
); );

View File

@ -81,8 +81,8 @@ export class NodePreviewComponent implements OnInit {
}), }),
catchError(err => { catchError(err => {
this.error = err; this.error = err;
this.openGraphService.waitOver('node-map'); this.openGraphService.fail('node-map');
this.openGraphService.waitOver('node-data'); this.openGraphService.fail('node-data');
return [{ return [{
alias: this.publicKey, alias: this.publicKey,
public_key: this.publicKey, public_key: this.publicKey,