Refactor/delete useless code on convertToShareLink function.
This commit is contained in:
parent
2f51f79730
commit
878d9b758a
1 changed files with 1 additions and 8 deletions
|
@ -230,12 +230,5 @@ export function isURIClaimable(URI) {
|
|||
}
|
||||
|
||||
export function convertToShareLink(URI) {
|
||||
if (URI.match(/pending_claim/)) return URI;
|
||||
|
||||
const { claimName, path, bidPosition, claimSequence, claimId } = parseURI(URI);
|
||||
return buildURI(
|
||||
{ claimName, path, claimSequence, bidPosition, claimId },
|
||||
true,
|
||||
'https://open.lbry.io/'
|
||||
);
|
||||
return buildURI(parseURI(URI), true, 'https://open.lbry.io/');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue