From 303c26f71669c8f7e0e7e723716f4e4a0fe71cfe Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 10 Jun 2021 14:32:35 -0300 Subject: [PATCH] [FIX] Crashing on link press (#3204) --- app/containers/markdown/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/markdown/Link.js b/app/containers/markdown/Link.js index 054b3d4d9..008dc0ba8 100644 --- a/app/containers/markdown/Link.js +++ b/app/containers/markdown/Link.js @@ -12,7 +12,7 @@ const Link = React.memo(({ children, link, theme, onLinkPress }) => { const handlePress = () => { - if (!link) { + if (!link || !onLinkPress) { return; } onLinkPress(link);