Skip to content

Commit

Permalink
fix: [ADN-401] Fix an account information showing error in sidebar me…
Browse files Browse the repository at this point in the history
…nu when wallet is locked
  • Loading branch information
jinoosss committed Feb 1, 2024
1 parent af1aba3 commit 68dd4a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ const SideMenuContainer: React.FC<SideMenuContainerProps> = ({ open, setOpen })
}, [setOpen]);

const { data: sideMenuAccounts = [] } = useQuery<SideMenuAccountInfo[]>(
['sideMenuAccounts', accountNames, accounts, accountNativeBalances, currentNetwork],
['sideMenuAccounts', locked, accountNames, accounts, accountNativeBalances, currentNetwork],
() => {
if (locked) {
return [];
}
function mapBalance(
accountNativeBalances: { [key in string]: TokenBalanceType },
account: Account,
Expand Down

0 comments on commit 68dd4a7

Please sign in to comment.