Fix failed resolve

This commit is contained in:
Rafael 2022-01-20 15:39:44 -03:00 committed by Thomas Zarebczan
parent aef3c346a0
commit 2340138ab5

View file

@ -505,6 +505,8 @@ export function doCommentCreate(
const mention = matchTerm.substring(matchTerm.indexOf('@')); const mention = matchTerm.substring(matchTerm.indexOf('@'));
const mentionUri = `lbry://${mention}`; const mentionUri = `lbry://${mention}`;
if (mention.length === 1) return;
const claim = selectClaimForUri(state, mentionUri); const claim = selectClaimForUri(state, mentionUri);
if (claim) { if (claim) {