Skip to content

Commit

Permalink
Analytics | if no property use null instead of empty map
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Apr 2, 2024
1 parent 2bbb49b commit 752c884
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class DefaultVectorAnalytics @Inject constructor(
?.takeIf { userConsent == true }
?.capture(
event.getName(),
event.getProperties().orEmpty().toPostHogProperties()
event.getProperties()?.toPostHogProperties()
)
}

Expand Down

0 comments on commit 752c884

Please sign in to comment.