[FIX] Crashing on link press (#3204)

This commit is contained in:
Diego Mello 2021-06-10 14:32:35 -03:00 committed by GitHub
parent 86ca76194d
commit 303c26f716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const Link = React.memo(({
children, link, theme, onLinkPress children, link, theme, onLinkPress
}) => { }) => {
const handlePress = () => { const handlePress = () => {
if (!link) { if (!link || !onLinkPress) {
return; return;
} }
onLinkPress(link); onLinkPress(link);