From b330580c2c48282ccf0cebfe4376cb3538aaec15 Mon Sep 17 00:00:00 2001 From: AlexBVolcy Date: Sun, 21 May 2023 10:37:41 -0700 Subject: [PATCH] Handle edge case --- usersync/cookie.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usersync/cookie.go b/usersync/cookie.go index e5de606955c..51474afdd7c 100644 --- a/usersync/cookie.go +++ b/usersync/cookie.go @@ -248,7 +248,9 @@ func (cookie *Cookie) UnmarshalJSON(b []byte) error { cookie.optOut = cookieContract.OptOut cookie.birthday = cookieContract.Birthday - if !cookie.optOut { + if cookie.optOut { + cookie.uids = nil + } else { cookie.uids = cookieContract.UIDs }