Skip to content

Commit

Permalink
chore: revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
abretonc7s committed Feb 29, 2024
1 parent aa44b05 commit c2636a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/components/Nav/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ const App = ({ userLoggedIn }) => {

const handleDeeplink = useCallback(({ error, params, uri }) => {
if (error) {
Logger.error('Error from Branch: ' + error);
trackErrorAsAnalytics(error, 'Branch:');
}
const deeplink = params?.['+non_branch_link'] || uri || null;
Expand Down Expand Up @@ -348,6 +347,13 @@ const App = ({ userLoggedIn }) => {
// Subscribe to incoming deeplinks
// Branch.io documentation: https://help.branch.io/developers-hub/docs/react-native
branch.subscribe((opts) => {
const { error } = opts;

if (error) {
// Log error for analytics and continue handling deeplink
Logger.error('Error from Branch: ' + error);
}

if (sdkPostInit.current === true) {
handleDeeplink(opts);
} else {
Expand Down

0 comments on commit c2636a9

Please sign in to comment.