File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/toolkit/src/query/core/buildMiddleware Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function buildMiddleware<
119
119
res = internalProbeResult
120
120
}
121
121
122
- if ( ! ! mwApi . getState ( ) [ reducerPath ] ) {
122
+ if ( mwApi . getState ( ) [ reducerPath ] ) {
123
123
// Only run these checks if the middleware is registered okay
124
124
125
125
// This looks for actions that aren't specific to the API slice
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
148
148
let skipPollingIfUnfocused : boolean | undefined = false
149
149
let lowestPollingInterval = Number . POSITIVE_INFINITY
150
150
for ( const key in subscribers ) {
151
- if ( ! ! subscribers [ key ] . pollingInterval ) {
151
+ if ( subscribers [ key ] . pollingInterval ) {
152
152
lowestPollingInterval = Math . min (
153
153
subscribers [ key ] . pollingInterval ! ,
154
154
lowestPollingInterval ,
You can’t perform that action at this time.
0 commit comments