mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
groups: trim ship string on preSig
This commit is contained in:
parent
0f85623f25
commit
8926179f75
@ -234,11 +234,11 @@ export function preSig(ship: string): string {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (ship.startsWith('~')) {
|
||||
return ship;
|
||||
if (ship.trim().startsWith('~')) {
|
||||
return ship.trim();
|
||||
}
|
||||
|
||||
return '~'.concat(ship);
|
||||
return '~'.concat(ship.trim());
|
||||
}
|
||||
|
||||
export function uxToHex(ux: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user