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 {
835
835
private updateEventStorage ( ) {
836
836
if ( this . enableAnalytics ) {
837
837
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 ) ) ;
839
840
}
840
841
}
841
842
842
- private evaluateFlag = ( key : string , method : 'VALUE' | 'ENABLED' ) => {
843
+ private evaluateFlag = ( key : string , method : 'VALUE' | 'ENABLED' ) => {
843
844
if ( this . datadogRum ) {
844
845
if ( ! this . datadogRum ! . client ! . addFeatureFlagEvaluation ) {
845
846
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