[FIX] Crashing on link press (#3204)
This commit is contained in:
parent
86ca76194d
commit
303c26f716
|
@ -12,7 +12,7 @@ const Link = React.memo(({
|
|||
children, link, theme, onLinkPress
|
||||
}) => {
|
||||
const handlePress = () => {
|
||||
if (!link) {
|
||||
if (!link || !onLinkPress) {
|
||||
return;
|
||||
}
|
||||
onLinkPress(link);
|
||||
|
|
Loading…
Reference in New Issue