Ensure sendMBOnce only sends event once (#5481)

GitOrigin-RevId: 360ae263213b4fd36aa33d41c6d54ef91f7f54fa
This commit is contained in:
Alf Eaton
2021-10-18 08:03:37 +00:00
committed by Copybot
parent fdd44d4abc
commit 9d452a4058
@@ -33,7 +33,7 @@ export function sendMB(key, segmentation = {}) {
export function sendMBOnce(key, segmentation = {}) {
if (alreadySent(key)) return
sendMB(key, segmentation)
markAsSent()
markAsSent(key)
}
export function sendMBSampled(key, body = {}, rate = 0.01) {