File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -242,12 +242,12 @@ AmplitudeClient.prototype._migrateUnsentEvents = function _migrateUnsentEvents(c
242242 var itemsToSet = [ ] ;
243243 var itemsToRemove = [ ] ;
244244
245- if ( ! ! unsentEventsString && ! unsentEventsString . includes ( this . _storageSuffix ) ) {
245+ if ( ! ! unsentEventsString ) {
246246 itemsToSet . push ( AsyncStorage . setItem ( this . options . unsentKey + this . _storageSuffix , JSON . stringify ( unsentEventsString ) ) ) ;
247247 itemsToRemove . push ( AsyncStorage . removeItem ( this . options . unsentKey ) ) ;
248248 }
249249
250- if ( ! ! unsentIdentifyKey && unsentIdentifyKey . includes ( this . _storageSuffix ) ) {
250+ if ( ! ! unsentIdentifyKey ) {
251251 itemsToSet . push ( AsyncStorage . setItem ( this . options . unsentIdentifyKey + this . _storageSuffix , JSON . stringify ( unsentIdentifyKey ) ) ) ;
252252 itemsToRemove . push ( AsyncStorage . removeItem ( this . options . unsentIdentifyKey ) ) ;
253253 }
You can’t perform that action at this time.
0 commit comments