Skip to content

Commit 6153e20

Browse files
fix: remove void promises from appsflyer plugin (#1025)
1 parent 53ee59d commit 6153e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ export class AppsflyerPlugin extends DestinationPlugin {
134134
}
135135
if (Boolean(is_first_launch) && JSON.parse(is_first_launch) === true) {
136136
if (af_status === 'Non-organic') {
137-
void this.analytics?.track('Install Attributed', properties);
137+
this.analytics?.track('Install Attributed', properties).then(() => this.analytics?.logger.info("Sent Install Attributed event to Segment"));
138138
} else {
139-
void this.analytics?.track('Organic Install', {
139+
this.analytics?.track('Organic Install', {
140140
provider: 'AppsFlyer',
141-
});
141+
}).then(() => this.analytics?.logger.info("Sent Organic Install event to Segment"));
142142
}
143143
}
144144
});

0 commit comments

Comments
 (0)