refactor: fetch safe and tokens simultaneously
This commit is contained in:
parent
823fc40f7d
commit
e08083743d
|
@ -15,8 +15,10 @@ export const useLoadSafe = (safeAddress) => {
|
|||
const fetchData = () => {
|
||||
if (safeAddress) {
|
||||
dispatch(fetchLatestMasterContractVersion())
|
||||
.then(() => dispatch(fetchSafe(safeAddress)))
|
||||
.then(() => dispatch(fetchSafeTokens(safeAddress)))
|
||||
.then(() => {
|
||||
dispatch(fetchSafe(safeAddress))
|
||||
return dispatch(fetchSafeTokens(safeAddress))
|
||||
})
|
||||
.then(() => {
|
||||
dispatch(loadAddressBookFromStorage())
|
||||
dispatch(fetchTransactions(safeAddress))
|
||||
|
|
Loading…
Reference in New Issue