Skip to content

Commit b3ab95d

Browse files
committed
update odpManager check condition
1 parent aa2a562 commit b3ab95d

File tree

1 file changed

+1
-1
lines changed
  • packages/optimizely-sdk/lib/optimizely

1 file changed

+1
-1
lines changed

packages/optimizely-sdk/lib/optimizely/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default class Optimizely implements Client {
184184
eventProcessorStartedPromise,
185185
];
186186

187-
if (config.odpManager && config.odpManager.initPromise) {
187+
if (config.odpManager?.initPromise) {
188188
dependentPromises.push(config.odpManager.initPromise);
189189
}
190190

0 commit comments

Comments
 (0)