Skip to content

Commit

Permalink
[FIX] Crashing on link press (#3204)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello authored Jun 10, 2021
1 parent 86ca761 commit 303c26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/containers/markdown/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Link = React.memo(({
children, link, theme, onLinkPress
}) => {
const handlePress = () => {
if (!link) {
if (!link || !onLinkPress) {
return;
}
onLinkPress(link);
Expand Down

0 comments on commit 303c26f

Please sign in to comment.