Analytics | if no property use null instead of empty map

This commit is contained in:
Valere 2024-04-02 11:44:05 +02:00
parent 2bbb49bdd3
commit 752c884eaa

View file

@ -177,7 +177,7 @@ class DefaultVectorAnalytics @Inject constructor(
?.takeIf { userConsent == true }
?.capture(
event.getName(),
event.getProperties().orEmpty().toPostHogProperties()
event.getProperties()?.toPostHogProperties()
)
}