diff --git a/src/hooks/DAO/loaders/useFractalNode.ts b/src/hooks/DAO/loaders/useFractalNode.ts index 4a79d6506d..f00446607c 100644 --- a/src/hooks/DAO/loaders/useFractalNode.ts +++ b/src/hooks/DAO/loaders/useFractalNode.ts @@ -35,7 +35,7 @@ export const useFractalNode = ({ const { requestWithRetries } = useAsyncRetry(); const formatDAOQuery = useCallback( - (result: { data?: DAOQueryQuery }, _daoAddress: string, _daoNetwork: string) => { + (result: { data?: DAOQueryQuery }, _daoNetwork: string, _daoAddress: string) => { if (!result.data) { return; } @@ -68,7 +68,7 @@ export const useFractalNode = ({ variables: { daoAddress }, onCompleted: async data => { if (!daoAddress || !daoNetwork) return; - const graphNodeInfo = formatDAOQuery({ data }, daoAddress, daoNetwork); + const graphNodeInfo = formatDAOQuery({ data }, daoNetwork, daoAddress); const daoName = await getDaoName(utils.getAddress(daoAddress), graphNodeInfo?.daoName); if (!!graphNodeInfo) { diff --git a/src/hooks/DAO/loaders/useLoadDAONode.ts b/src/hooks/DAO/loaders/useLoadDAONode.ts index 7657661b0d..1033b3ea61 100644 --- a/src/hooks/DAO/loaders/useLoadDAONode.ts +++ b/src/hooks/DAO/loaders/useLoadDAONode.ts @@ -20,7 +20,7 @@ export const useLoadDAONode = () => { }); const formatDAOQuery = useCallback( - (result: { data?: DAOQueryQuery }, _daoAddress: string, _daoNetwork: string) => { + (result: { data?: DAOQueryQuery }, _daoNetwork: string, _daoAddress: string) => { if (!result.data) { return; } @@ -52,8 +52,8 @@ export const useLoadDAONode = () => { try { const graphNodeInfo = formatDAOQuery( await getDAOInfo({ variables: { daoAddress: _daoAddress } }), - _daoAddress, _daoNetwork, + _daoAddress, ); if (!graphNodeInfo) { logError('graphQL query failed');