From f733195aa7b9fa145e0b04e710c694e6578b015e Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Fri, 18 Nov 2022 08:52:42 +0300 Subject: [PATCH] migration bio fix --- src/components/Author/Card.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Author/Card.tsx b/src/components/Author/Card.tsx index 670ddcbe..7cd3131a 100644 --- a/src/components/Author/Card.tsx +++ b/src/components/Author/Card.tsx @@ -30,11 +30,7 @@ export const AuthorCard = (props: AuthorCardProps) => { () => session()?.news?.authors?.some((u) => u === props.author.slug) || false ) const canFollow = createMemo(() => !props.hideFollow && session()?.user?.slug !== props.author.slug) - const bio = () => { - const d = document.createElement('div') - d.innerHTML = props.author.bio - return d.innerText || t('Our regular contributor') - } + const bio = () => props.author.bio || t('Our regular contributor') const name = () => { return props.author.name === 'Дискурс' && locale() !== 'ru' ? 'Discours'