Skip to content

Commit

Permalink
Reorder function params
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Mar 27, 2024
1 parent b04d36e commit cd5489f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/pages/DaoHierarchy/DaoNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function DaoNode({

useEffect(() => {
if (daoAddress && daoNetwork && !fractalNode) {
loadDao(utils.getAddress(daoAddress), daoNetwork).then(_node => {
loadDao(daoNetwork, utils.getAddress(daoAddress)).then(_node => {
const errorNode = _node as WithError;
if (!errorNode.error) {
// calculates the total number of descendants below the given node
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/DAO/loaders/useLoadDAONode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const useLoadDAONode = () => {
);

const loadDao = useCallback(
async (_daoAddress: string, _daoNetwork: string): Promise<FractalNode | WithError> => {
async (_daoNetwork: string, _daoAddress: string): Promise<FractalNode | WithError> => {
if (utils.isAddress(_daoAddress) && safeAPI) {
try {
const graphNodeInfo = formatDAOQuery(
Expand Down

0 comments on commit cd5489f

Please sign in to comment.