Skip to content

Commit

Permalink
Handle edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBVolcy committed May 21, 2023
1 parent de6a020 commit b330580
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion usersync/cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b330580

Please sign in to comment.