Skip to content

Commit

Permalink
fix: update logic for conditional
Browse files Browse the repository at this point in the history
Co-authored-by: Oscar Bazaldua <[email protected]>
  • Loading branch information
ashton-huxtable and oscb authored Oct 10, 2023
1 parent 3b5882b commit aa24c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/flushPolicies/background-flush-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class BackgroundFlushPolicy extends FlushPolicyBase {
'change',
(nextAppState) => {
if (
(this.appState === 'active' || 'unknown') &&
(this.appState === 'active' || this.appState === 'unknown') &&
['inactive', 'background'].includes(nextAppState)
) {
// When the app goes into the background we will trigger a flush
Expand Down

0 comments on commit aa24c7c

Please sign in to comment.