We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e5914 commit 0b5c45eCopy full SHA for 0b5c45e
dotcom-rendering/src/client/abTesting.ts
@@ -10,13 +10,13 @@ type ABParticipations = {
10
* get client-side AB test state from the cookie
11
*/
12
const getClientParticipations = (): ABParticipations => {
13
- const userTestBuckets = getCookie({
+ const clientParticipations = getCookie({
14
name: AB_COOKIE_NAME,
15
shouldMemoize: true,
16
});
17
18
- if (userTestBuckets) {
19
- return userTestBuckets
+ if (clientParticipations) {
+ return clientParticipations
20
.split(',')
21
.reduce<ABParticipations>((participations, abTestStatus) => {
22
const [testId, groupId] = abTestStatus.split(':');
0 commit comments