Skip to content

Commit

Permalink
fix: small issue in validate Handle resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaPC committed Apr 30, 2024
1 parent a0872d0 commit d42dc71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const verifyHandle = async (
): Promise<ValidationResult & { handles?: HandleResolution[] }> => {
try {
const resolvedHandles = await handleResolver.resolveHandles({ handles: [value.slice(1).toLowerCase()] });
if (resolvedHandles.length === 0 || resolvedHandles === null) {
if (resolvedHandles[0] === null) {
return { valid: false };
}
return { valid: true, handles: resolvedHandles };
Expand Down

0 comments on commit d42dc71

Please sign in to comment.