Fallback alias name to pubkey

fixes #2935
This commit is contained in:
softsimon 2023-01-10 21:27:26 +04:00
parent 549d61b41e
commit 8ebe04baa7
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -36,7 +36,9 @@ export class AddressLabelsComponent implements OnChanges {
handleChannel() {
const type = this.vout ? 'open' : 'close';
this.label = `Channel ${type}: ${this.channel.node_left.alias} <> ${this.channel.node_right.alias}`;
const leftNodeName = this.channel.node_left.alias || this.channel.node_left.public_key.substring(0, 10);
const rightNodeName = this.channel.node_right.alias || this.channel.node_right.public_key.substring(0, 10);
this.label = `Channel ${type}: ${leftNodeName} <> ${rightNodeName}`;
}
handleVin() {