diff --git a/src/components/common/SafeLink.tsx b/src/components/common/SafeLink.tsx index c9792658f..faf5be892 100644 --- a/src/components/common/SafeLink.tsx +++ b/src/components/common/SafeLink.tsx @@ -29,10 +29,11 @@ const SafeLink: FC = ({ const { openUrl } = getActions(); const content = children || text; - const isSafe = url === content; + const isSafe = url === text; const handleClick = useCallback((e: React.MouseEvent) => { if (!url) return true; + e.preventDefault(); openUrl({ url, shouldSkipModal: isSafe }); diff --git a/src/components/common/WebLink.tsx b/src/components/common/WebLink.tsx index 36ebc3453..b4d7a895c 100644 --- a/src/components/common/WebLink.tsx +++ b/src/components/common/WebLink.tsx @@ -84,6 +84,8 @@ const WebLink: FC = ({ (!photo && !video) && 'without-media', ); + const safeLinkContent = url.replace('mailto:', '') || displayUrl; + return (
= ({ - {url.replace('mailto:', '') || displayUrl} - + /> {senderTitle &&
{renderText(senderTitle)}
}
{senderTitle && ( diff --git a/src/components/payment/Checkout.tsx b/src/components/payment/Checkout.tsx index aed2560e8..335be29b6 100644 --- a/src/components/payment/Checkout.tsx +++ b/src/components/payment/Checkout.tsx @@ -131,11 +131,9 @@ const Checkout: FC = ({ {langStringSplit[0]} - {langStringSplit[1]} - + /> {langStringSplit.slice(2)} );