Explorar o código

Ensure sendMBOnce only sends event once (#5481)

GitOrigin-RevId: 360ae263213b4fd36aa33d41c6d54ef91f7f54fa
Alf Eaton %!s(int64=4) %!d(string=hai) anos
pai
achega
01f7f19446
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/web/frontend/js/infrastructure/event-tracking.js

+ 1 - 1
services/web/frontend/js/infrastructure/event-tracking.js

@@ -33,7 +33,7 @@ export function sendMB(key, segmentation = {}) {
 export function sendMBOnce(key, segmentation = {}) {
 export function sendMBOnce(key, segmentation = {}) {
   if (alreadySent(key)) return
   if (alreadySent(key)) return
   sendMB(key, segmentation)
   sendMB(key, segmentation)
-  markAsSent()
+  markAsSent(key)
 }
 }
 
 
 export function sendMBSampled(key, body = {}, rate = 0.01) {
 export function sendMBSampled(key, body = {}, rate = 0.01) {