Skip to content

Commit

Permalink
variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Apr 4, 2024
1 parent 2e252ab commit 6fe9a41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/hooks/DAO/loaders/useFractalNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ export const useFractalNode = (
currentValidSafe.current = _addressPrefix + _daoAddress;
setErrorLoading(false);

let safeInfoResponseWithGuard;
let safeInfo;

try {
if (!safeAPI) throw new Error('SafeAPI not set');

const address = utils.getAddress(_daoAddress);
const safeInfo = await safeAPI.getSafeInfo(address);
const safeInfoResponse = await safeAPI.getSafeInfo(address);
const nextNonce = await safeAPI.getNextNonce(address);
safeInfoResponseWithGuard = { ...safeInfo, nonce: nextNonce };
safeInfo = { ...safeInfoResponse, nonce: nextNonce };
} catch (e) {
reset({ error: true });
return;
Expand All @@ -114,12 +114,12 @@ export const useFractalNode = (

action.dispatch({
type: NodeAction.SET_FRACTAL_MODULES,
payload: await lookupModules(safeInfoResponseWithGuard.modules),
payload: await lookupModules(safeInfo.modules),
});

action.dispatch({
type: NodeAction.SET_SAFE_INFO,
payload: safeInfoResponseWithGuard,
payload: safeInfo,
});
},
[action, lookupModules, reset, safeAPI],
Expand Down

0 comments on commit 6fe9a41

Please sign in to comment.