Skip to content

Commit

Permalink
fix(dao): check is dao version available (#1014)
Browse files Browse the repository at this point in the history
Co-authored-by: Overzunov <[email protected]>
  • Loading branch information
VERZUOL1 and Overzunov authored Apr 28, 2022
1 parent 10b9fa9 commit 657db0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function useCheckDaoUpgrade(
return;
}

if (!account) {
if (!account || !dao.daoVersion) {
return;
}

Expand Down Expand Up @@ -83,7 +83,7 @@ export function useCheckDaoUpgrade(

setVersionHash(nextVersionHash[0]);
setLoading(false);
}, [appConfig, dao.daoVersion.hash, nearService]);
}, [appConfig, dao.daoVersion, nearService]);

useEffect(() => {
(async () => {
Expand Down

0 comments on commit 657db0b

Please sign in to comment.