diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt index b6e78fcac1..b65cfd72da 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt @@ -152,9 +152,9 @@ internal class ReleaseMetricController( } Component.FEATURE_CONTEXTMENU to ContextMenuFacts.Items.ITEM -> { - metadata?.get("item")?.let { - contextMenuAllowList[item]?.let { - ContextMenu.itemTapped.record(ContextMenu.ItemTappedExtra(it)) + metadata?.get("item")?.let { item -> + contextMenuAllowList[item]?.let { extraKey -> + ContextMenu.itemTapped.record(ContextMenu.ItemTappedExtra(extraKey)) } } Unit