File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -835,11 +835,12 @@ const Flagsmith = class {
835835 private updateEventStorage ( ) {
836836 if ( this . enableAnalytics ) {
837837 const events = JSON . stringify ( this . getState ( ) . evaluationEvent ) ;
838- AsyncStorage ! . setItem ( FlagsmithEvent , events ) ;
838+ AsyncStorage ! . setItem ( FlagsmithEvent , events )
839+ . catch ( ( e ) => console . error ( "Flagsmith: Error setting item in async storage" , e ) ) ;
839840 }
840841 }
841842
842- private evaluateFlag = ( key : string , method : 'VALUE' | 'ENABLED' ) => {
843+ private evaluateFlag = ( key : string , method : 'VALUE' | 'ENABLED' ) => {
843844 if ( this . datadogRum ) {
844845 if ( ! this . datadogRum ! . client ! . addFeatureFlagEvaluation ) {
845846 console . error ( 'Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.' ) ;
You can’t perform that action at this time.
0 commit comments