From 98ec5f04da5810be5d34b9e7528ba6e80d09145d Mon Sep 17 00:00:00 2001 From: Ashutosh Date: Tue, 12 Nov 2019 22:52:59 +0530 Subject: [PATCH] Minor fix --- src/services/UniversalLinksManager.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/UniversalLinksManager.js b/src/services/UniversalLinksManager.js index 2a909c5d..be718b3f 100644 --- a/src/services/UniversalLinksManager.js +++ b/src/services/UniversalLinksManager.js @@ -61,8 +61,10 @@ class UniversalLinksManager extends PureComponent { const resultType = deepGet(res, "data.result_type"), goTo = deepGet( res , `data.${resultType}`) ; - navigateTo.setGoTo(goTo); - CurrentUser.getSyncState() && navigateTo.shouldNavigate(); + if(goTo){ + navigateTo.setGoTo(goTo); + CurrentUser.getSyncState() && navigateTo.shouldNavigate(); + } }) .catch((error) => {}); }