This repository was archived by the owner on Sep 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libs/shared/providers/src/swapper Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const eslintPluginUnusedImports = require('eslint-plugin-unused-imports');
66const eslintPluginSimpleImportSort = require ( 'eslint-plugin-simple-import-sort' ) ;
77const eslintPluginImport = require ( 'eslint-plugin-import' ) ;
88const eslintPluginPrettier = require ( 'eslint-plugin-prettier' ) ;
9-
9+ const eslintPluginReactHooks = require ( 'eslint-plugin-react-hooks' ) ;
1010const compat = new FlatCompat ( {
1111 baseDirectory : __dirname ,
1212 recommendedConfig : js . configs . recommended ,
@@ -17,6 +17,7 @@ module.exports = [
1717 plugins : {
1818 '@nx' : nxEslintPlugin ,
1919 formatjs : eslintPluginFormatjs ,
20+ 'react-hooks' : eslintPluginReactHooks ,
2021 'unused-imports' : eslintPluginUnusedImports ,
2122 'simple-import-sort' : eslintPluginSimpleImportSort ,
2223 import : eslintPluginImport ,
Original file line number Diff line number Diff line change 1- /* eslint-disable react-hooks/exhaustive-deps */
21import { useCallback , useMemo } from 'react' ;
32
43import {
@@ -312,7 +311,7 @@ export const useHandleTokenFlip = () => {
312311 status : 'swapRoutesLoading' ,
313312 } ) ) ;
314313 const routes = await Promise . all (
315- newRoutes . map ( ( route ) =>
314+ filteredRoutes . map ( ( route ) =>
316315 queryClient . fetchQuery ( {
317316 queryKey : [
318317 'estimateRoute' ,
You can’t perform that action at this time.
0 commit comments