File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ export default class BrowserDataManager extends BaseDataManager {
7373 identifyOptions ?: LDIdentifyOptions ,
7474 ) : Promise < void > {
7575 this . context = context ;
76- const browserIdentifyOptions = identifyOptions as BrowserIdentifyOptions ;
77- if ( browserIdentifyOptions . hash ) {
76+ const browserIdentifyOptions = identifyOptions as BrowserIdentifyOptions | undefined ;
77+ if ( browserIdentifyOptions ? .hash ) {
7878 this . setConnectionParams ( {
7979 queryParameters : [ { key : 'h' , value : browserIdentifyOptions . hash } ] ,
8080 } ) ;
8181 } else {
8282 this . setConnectionParams ( ) ;
8383 }
84- this . secureModeHash = browserIdentifyOptions . hash ;
84+ this . secureModeHash = browserIdentifyOptions ? .hash ;
8585 if ( await this . flagManager . loadCached ( context ) ) {
8686 this . debugLog ( 'Identify - Flags loaded from cache. Continuing to initialize via a poll.' ) ;
8787 }
You can’t perform that action at this time.
0 commit comments