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 @@ -130,7 +130,7 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
130130 let skipPollingIfUnfocused : boolean | undefined = false
131131 let lowestPollingInterval = Number . POSITIVE_INFINITY
132132 for ( const key in subscribers ) {
133- if ( ! ! subscribers [ key ] . pollingInterval ) {
133+ if ( subscribers [ key ] . pollingInterval ) {
134134 lowestPollingInterval = Math . min (
135135 subscribers [ key ] . pollingInterval ! ,
136136 lowestPollingInterval ,
You can’t perform that action at this time.
0 commit comments