fix: use merchantLabel(o) for retailer in offer row affiliate tracking
This commit is contained in:
@@ -700,7 +700,7 @@ export default function ProductDetailsPage() {
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="inline-flex items-center justify-center rounded-md bg-amber-400 px-3 py-1.5 text-xs font-semibold text-black hover:bg-amber-300"
|
||||
onClick={() => trackAffiliateLinkClicked(product?.name ?? "", o.merchantName ?? "")}
|
||||
onClick={() => trackAffiliateLinkClicked(product?.name ?? "", merchantLabel(o))}
|
||||
>
|
||||
Buy
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user