Skip to content

Commit fcabc7d

Browse files
authored
Fix retryCondition error. (#2743)
1 parent 7611078 commit fcabc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/query/retry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const retryWithBackoff: BaseQueryEnhancer<
124124

125125
if (
126126
e instanceof HandledError &&
127-
!options.retryCondition(e.value as FetchBaseQueryError, args, {
127+
!options.retryCondition(e.value.error as FetchBaseQueryError, args, {
128128
attempt: retry,
129129
baseQueryApi: api,
130130
extraOptions,

0 commit comments

Comments
 (0)