diff --git a/ui/js/uri.js b/ui/js/uri.js index 98883c6be..1eb86ada0 100644 --- a/ui/js/uri.js +++ b/ui/js/uri.js @@ -74,12 +74,12 @@ uri.parseLbryUri = function(lbryUri, requireProto=false) { throw new Error(`Invalid claim ID ${claimId}.`); } - if (bidPosition && !bidPosition.match(/^-?[1-9][0-9]+$/)) { - throw new Error('Bid position must be a number.'); + if (claimSequence && !claimSequence.match(/^-?[1-9][0-9]*$/)) { + throw new Error('Claim sequence must be a number.'); } - if (claimSequence && !claimSequence.match(/^-?[1-9][0-9]+$/)) { - throw new Error('Claim sequence must be a number.'); + if (bidPosition && !bidPosition.match(/^-?[1-9][0-9]*$/)) { + throw new Error('Bid position must be a number.'); } // Validate path