From 5d1e6a8f7cea1c7bcfbacf77801a666950c71f39 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 30 Dec 2021 16:08:34 -0500 Subject: [PATCH] fix crash https://odysee.com/@ShapeShiftDAOLatam:e/giveth-es:a --- ui/component/markdownLink/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/markdownLink/view.jsx b/ui/component/markdownLink/view.jsx index a0e0edd21..995223b5b 100644 --- a/ui/component/markdownLink/view.jsx +++ b/ui/component/markdownLink/view.jsx @@ -43,7 +43,7 @@ function MarkdownLink(props: Props) { // Regex for url protocol const protocolRegex = new RegExp('^(https?|lbry|mailto)+:', 'i'); const protocol = href ? protocolRegex.exec(href) : null; - const isMention = href.startsWith('lbry://@'); + const isMention = href && href.startsWith('lbry://@'); const mentionedMyChannel = isMention && (myChannelUrls ? myChannelUrls.some((url) => url.replace('#', ':') === href) : false);