Skip to content

Commit

Permalink
fix: remove void promises from appsflyer plugin (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartschoch authored Dec 16, 2024
1 parent 53ee59d commit 6153e20
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 6153e20

Please sign in to comment.