Skip to content

Commit

Permalink
fix: remove void promises from appsflyer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartschoch committed Nov 12, 2024
1 parent c9c669f commit b27aa53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ export class AppsflyerPlugin extends DestinationPlugin {
}
if (Boolean(is_first_launch) && JSON.parse(is_first_launch) === true) {
if (af_status === 'Non-organic') {
void this.analytics?.track('Install Attributed', properties);
this.analytics?.track('Install Attributed', properties).then(() => this.analytics?.logger.info("Sent Install Attributed event to Segment"));
} else {
void this.analytics?.track('Organic Install', {
this.analytics?.track('Organic Install', {
provider: 'AppsFlyer',
});
}).then(() => this.analytics?.logger.info("Sent Organic Install event to Segment"));
}
}
});
Expand Down

0 comments on commit b27aa53

Please sign in to comment.