Skip to content

Commit e2024d7

Browse files
author
Athira M
committed
Merge branch 'web-exp-abt' into web-exp-ga
2 parents 55db6e0 + 455b8e3 commit e2024d7

File tree

1 file changed

+1
-2
lines changed
  • packages/remote-config/src

1 file changed

+1
-2
lines changed

packages/remote-config/src/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export async function activate(remoteConfig: RemoteConfig): Promise<boolean> {
9898
if (
9999
!lastSuccessfulFetchResponse ||
100100
!lastSuccessfulFetchResponse.config ||
101-
!lastSuccessfulFetchResponse.experiments ||
102101
!lastSuccessfulFetchResponse.eTag ||
103102
lastSuccessfulFetchResponse.eTag === activeConfigEtag
104103
) {
@@ -109,7 +108,7 @@ export async function activate(remoteConfig: RemoteConfig): Promise<boolean> {
109108
const experiment = new Experiment(rc._storage, rc._analytics);
110109
await Promise.all([
111110
rc._storageCache.setActiveConfig(lastSuccessfulFetchResponse.config),
112-
experiment.updateActiveExperiments(lastSuccessfulFetchResponse.experiments),
111+
lastSuccessfulFetchResponse.experiments && experiment.updateActiveExperiments(lastSuccessfulFetchResponse.experiments),
113112
rc._storage.setActiveConfigEtag(lastSuccessfulFetchResponse.eTag)
114113
]);
115114
return true;

0 commit comments

Comments
 (0)