Skip to content

Commit 126790b

Browse files
refactor: Update useBaseQuery.ts (#813)
1 parent ac94414 commit 126790b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/useBaseQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function useBaseQuery<TResult, TError>(
3939
instanceRef.current?.updateConfig(config)
4040
})
4141

42-
const enabledBool = !!config.enabled
42+
const enabledBool = Boolean(config.enabled)
4343

4444
// Run the instance when the query or enabled change
4545
React.useEffect(() => {

0 commit comments

Comments
 (0)