if alias name is explicitly provided as underscore symbol, exclude it
This commit is contained in:
parent
7b31143828
commit
e42b848fa9
1 changed files with 7 additions and 2 deletions
|
|
@ -291,7 +291,12 @@ export class SendComponent implements OnInit {
|
|||
|
||||
this.isDestinationAccountAlias = true;
|
||||
|
||||
const aliasWithoutFirstSymbol = destinationAddress.slice(1);
|
||||
let aliasWithoutFirstSymbol = destinationAddress.slice(1);
|
||||
|
||||
if (aliasWithoutFirstSymbol.startsWith('_@') === true ) {
|
||||
aliasWithoutFirstSymbol = aliasWithoutFirstSymbol.slice(2);
|
||||
}
|
||||
|
||||
const aliasSplitResults = aliasWithoutFirstSymbol.split('@');
|
||||
|
||||
let aliasName = ''
|
||||
|
|
@ -305,7 +310,7 @@ export class SendComponent implements OnInit {
|
|||
}
|
||||
|
||||
this.aliasLookup = {
|
||||
fullText: destinationAddress,
|
||||
fullText: `@${aliasWithoutFirstSymbol}`,
|
||||
name: aliasName,
|
||||
domain: aliasDomain,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue