diff --git a/components/poll/truncated-linkify.tsx b/components/poll/truncated-linkify.tsx index 0f1629624..4d83d49fe 100644 --- a/components/poll/truncated-linkify.tsx +++ b/components/poll/truncated-linkify.tsx @@ -10,9 +10,10 @@ export const truncateLink = (href: string, text: string, key: number) => { if (beginningOfPath !== -1) { finalText = textWithoutProtocol.substring(0, beginningOfPath + 15); } + if (finalText.length === textWithoutProtocol.length) { return ( - + {finalText} ); @@ -25,7 +26,9 @@ export const truncateLink = (href: string, text: string, key: number) => {