Skip to content

Commit

Permalink
Merge branch 'ag/feat/upgrade-tanstack' of github.com:FuelLabs/fuel-c…
Browse files Browse the repository at this point in the history
…onnectors into ag/feat/upgrade-tanstack
  • Loading branch information
arthurgeron committed Dec 20, 2024
2 parents 53a0eda + e000bd1 commit f2a3399
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/hooks/useIsSupportedNetwork.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function useIsSupportedNetwork(params?: UseIsSupportedNetwork) {
const { isConnected } = useIsConnected();
const { currentConnector } = useCurrentConnector();

console.log('fsk network data', network);
return useNamedQuery('isSupportedNetwork', {
queryKey: QUERY_KEYS.isSupportedNetwork(
currentConnector?.name,
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/providers/FuelProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export function FuelProvider({
[_uiConfig],
);

console.log('fsk ui', ui);

console.error('fsk hello', ui);
if (ui) {
return (
<FuelHooksProvider fuelConfig={fuelConfig} networks={networks}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ export function NetworkDialog({
return '';
}

console.log(
`fsk networks: ${JSON.stringify(
networks,
)}, isConnected: ${isConnected}, isSupportedNetwork: ${isSupportedNetwork}, chainName: ${chainName}`,
);

if (networks == null || !isConnected) {
return null;
}
Expand Down

0 comments on commit f2a3399

Please sign in to comment.