@@ -18,7 +18,7 @@ import { useFeatureFlagContext } from "@contexts/FeatureFlagContext";
1818import { useWhaleApiClient } from "@waveshq/walletkit-ui/dist/contexts" ;
1919
2020export function WalletDataProvider (
21- props : PropsWithChildren < any >
21+ props : PropsWithChildren < any > ,
2222) : JSX . Element | null {
2323 const blockCount = useSelector ( ( state : RootState ) => state . block . count ) ;
2424 const client = useWhaleApiClient ( ) ;
@@ -36,7 +36,7 @@ export function WalletDataProvider(
3636 fetchDexPrice ( {
3737 client,
3838 denomination : "USDT" ,
39- } )
39+ } ) ,
4040 ) ;
4141 } ) ;
4242 } , [ blockCount , network ] ) ;
@@ -47,7 +47,7 @@ export function WalletDataProvider(
4747 if ( isFeatureAvailable ( "local_storage" ) ) {
4848 dispatch ( fetchUserPreferences ( network ) ) ;
4949 }
50- } , [ network , wallets ] ) ;
50+ } , [ network , wallets , isFeatureAvailable ] ) ;
5151
5252 /* Global polling based on blockCount, network and address */
5353 useEffect ( ( ) => {
@@ -56,13 +56,13 @@ export function WalletDataProvider(
5656 fetchTokens ( {
5757 client,
5858 address,
59- } )
59+ } ) ,
6060 ) ;
6161 dispatch (
6262 fetchVaults ( {
6363 client,
6464 address,
65- } )
65+ } ) ,
6666 ) ;
6767 } ) ;
6868 } , [ blockCount , network , address ] ) ;
0 commit comments