From 6153e20eb75d120193d1161fdee5ec85a3c74341 Mon Sep 17 00:00:00 2001 From: Lennart Schoch Date: Mon, 16 Dec 2024 16:36:22 +0000 Subject: [PATCH] fix: remove void promises from appsflyer plugin (#1025) --- packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx b/packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx index c3c2ab99..49430e3e 100644 --- a/packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx +++ b/packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx @@ -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")); } } });