diff --git a/ts/components/conversation/Linkify.tsx b/ts/components/conversation/Linkify.tsx index 46e39c595..37313d478 100644 --- a/ts/components/conversation/Linkify.tsx +++ b/ts/components/conversation/Linkify.tsx @@ -29,9 +29,7 @@ export class Linkify extends React.Component { let count = 1; if (isRss && text.indexOf(' - ); + results.push(); // should already have links return results; diff --git a/ts/components/session/AccentText.tsx b/ts/components/session/AccentText.tsx index 883566d90..6a7d004fe 100644 --- a/ts/components/session/AccentText.tsx +++ b/ts/components/session/AccentText.tsx @@ -15,7 +15,6 @@ export class AccentText extends React.PureComponent { public render() { const { showSubtitle, i18n } = this.props; - return (
@@ -26,8 +25,8 @@ export class AccentText extends React.PureComponent {
) : ( - '' - )} + '' + )}
); } diff --git a/ts/components/session/RegistrationTabs.tsx b/ts/components/session/RegistrationTabs.tsx index 481e1c3c3..95ce92d84 100644 --- a/ts/components/session/RegistrationTabs.tsx +++ b/ts/components/session/RegistrationTabs.tsx @@ -57,8 +57,8 @@ const Tab = ({ }) => { const handleClick = onSelect ? () => { - onSelect({ type }); - } + onSelect({ type }); + } : undefined; return ( diff --git a/ts/components/session/SessionHTMLRenderer.tsx b/ts/components/session/SessionHTMLRenderer.tsx index f5980b55b..24e7c4bc8 100644 --- a/ts/components/session/SessionHTMLRenderer.tsx +++ b/ts/components/session/SessionHTMLRenderer.tsx @@ -9,7 +9,11 @@ interface ReceivedProps { type Props = ReceivedProps; -export const SessionHtmlRenderer: React.SFC = ({ tag = 'div', key, html }) => { +export const SessionHtmlRenderer: React.SFC = ({ + tag = 'div', + key, + html, +}) => { const clean = DOMPurify.sanitize(html, { USE_PROFILES: { html: true }, FORBID_ATTR: ['style', 'script'],