File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/remote-config/src Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ export async function activate(remoteConfig: RemoteConfig): Promise<boolean> {
98
98
if (
99
99
! lastSuccessfulFetchResponse ||
100
100
! lastSuccessfulFetchResponse . config ||
101
- ! lastSuccessfulFetchResponse . experiments ||
102
101
! lastSuccessfulFetchResponse . eTag ||
103
102
lastSuccessfulFetchResponse . eTag === activeConfigEtag
104
103
) {
@@ -109,7 +108,7 @@ export async function activate(remoteConfig: RemoteConfig): Promise<boolean> {
109
108
const experiment = new Experiment ( rc . _storage , rc . _analytics ) ;
110
109
await Promise . all ( [
111
110
rc . _storageCache . setActiveConfig ( lastSuccessfulFetchResponse . config ) ,
112
- experiment . updateActiveExperiments ( lastSuccessfulFetchResponse . experiments ) ,
111
+ lastSuccessfulFetchResponse . experiments && experiment . updateActiveExperiments ( lastSuccessfulFetchResponse . experiments ) ,
113
112
rc . _storage . setActiveConfigEtag ( lastSuccessfulFetchResponse . eTag )
114
113
] ) ;
115
114
return true ;
You can’t perform that action at this time.
0 commit comments