Skip to content

Commit 0b5c45e

Browse files
committed
clientParticipations
1 parent e1e5914 commit 0b5c45e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotcom-rendering/src/client/abTesting.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ type ABParticipations = {
1010
* get client-side AB test state from the cookie
1111
*/
1212
const getClientParticipations = (): ABParticipations => {
13-
const userTestBuckets = getCookie({
13+
const clientParticipations = getCookie({
1414
name: AB_COOKIE_NAME,
1515
shouldMemoize: true,
1616
});
1717

18-
if (userTestBuckets) {
19-
return userTestBuckets
18+
if (clientParticipations) {
19+
return clientParticipations
2020
.split(',')
2121
.reduce<ABParticipations>((participations, abTestStatus) => {
2222
const [testId, groupId] = abTestStatus.split(':');

0 commit comments

Comments
 (0)