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<
119119 res = internalProbeResult
120120 }
121121
122- if ( ! ! mwApi . getState ( ) [ reducerPath ] ) {
122+ if ( mwApi . getState ( ) [ reducerPath ] ) {
123123 // Only run these checks if the middleware is registered okay
124124
125125 // 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 = ({
148148 let skipPollingIfUnfocused : boolean | undefined = false
149149 let lowestPollingInterval = Number . POSITIVE_INFINITY
150150 for ( const key in subscribers ) {
151- if ( ! ! subscribers [ key ] . pollingInterval ) {
151+ if ( subscribers [ key ] . pollingInterval ) {
152152 lowestPollingInterval = Math . min (
153153 subscribers [ key ] . pollingInterval ! ,
154154 lowestPollingInterval ,
You can’t perform that action at this time.
0 commit comments