[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
|
children, link, theme, onLinkPress
|
||||||
}) => {
|
}) => {
|
||||||
const handlePress = () => {
|
const handlePress = () => {
|
||||||
if (!link) {
|
if (!link || !onLinkPress) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
onLinkPress(link);
|
onLinkPress(link);
|
||||||
|
|
Loading…
Reference in New Issue