EventDetail: Fix crash on FB link press
This commit is contained in:
1 parent
96a1b47d83
commit
862cdcacf2
1 file changed
+1
-1
@@ -81,7 +81,7 @@ export default class EventDetail extends Component {
|
||||
const fbEventPattern = /https?:\/\/www\.facebook\.com\/events\/(\d+)\/?/i;
|
||||
const matches = fbEventPattern.exec(link);
|
||||
let iosURL = link;
|
||||
if( matches.length ) {
|
||||
if( matches && matches.length ) {
|
||||
iosURL = 'fb://event/?id=' + matches[1];
|
||||
}
|
||||
const url = Platform.select({
|
||||
|
||||
Reference in new issue
Block a user