Skip to content

Commit 9e196a5

Browse files
committed
fix: native cookies
1 parent 6ff3978 commit 9e196a5

File tree

1 file changed

+2
-2
lines changed
  • crates/components-runtime/src/data_collection

1 file changed

+2
-2
lines changed

Diff for: crates/components-runtime/src/data_collection/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ pub async fn send_events(
165165

166166
// Native cookie support
167167
if let Some(ref ids) = event.context.user.native_cookie_ids {
168-
if ids.contains_key(&cfg.id) {
169-
event.context.user.edgee_id = ids.get(&cfg.id).unwrap().clone();
168+
if ids.contains_key(&cfg.slug) {
169+
event.context.user.edgee_id = ids.get(&cfg.slug).unwrap().clone();
170170
} else {
171171
event.context.user.edgee_id = ctx.get_edgee_id().clone();
172172
}

0 commit comments

Comments
 (0)