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> {
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 ;
You can’t perform that action at this time.
0 commit comments