Skip to content

Commit

Permalink
chore: new native cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaMorard committed Feb 13, 2025
1 parent 330c9b9 commit 2eca42d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/components-runtime/src/data_collection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ pub async fn send_events(

// Native cookie support
if let Some(ref ids) = event.context.user.native_cookie_ids {
if ids.contains_key(&cfg.project_component_id) {
event.context.user.edgee_id =
ids.get(&cfg.project_component_id).unwrap().clone();
if ids.contains_key(&cfg.id) {
event.context.user.edgee_id = ids.get(&cfg.id).unwrap().clone();
} else {
event.context.user.edgee_id = ctx.get_edgee_id().clone();
}
Expand Down

0 comments on commit 2eca42d

Please sign in to comment.