diff --git a/packages/toolkit/src/query/retry.ts b/packages/toolkit/src/query/retry.ts index c7954bfcc6..ed72b86b34 100644 --- a/packages/toolkit/src/query/retry.ts +++ b/packages/toolkit/src/query/retry.ts @@ -124,7 +124,7 @@ const retryWithBackoff: BaseQueryEnhancer< if ( e instanceof HandledError && - !options.retryCondition(e.value as FetchBaseQueryError, args, { + !options.retryCondition(e.value.error as FetchBaseQueryError, args, { attempt: retry, baseQueryApi: api, extraOptions,