Skip to content

Commit

Permalink
bump wallet-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov committed Nov 27, 2024
1 parent 50d5db9 commit ff6528b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 257 deletions.
4 changes: 2 additions & 2 deletions utils/wallet-connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gear-js/wallet-connect",
"version": "0.1.2",
"version": "0.2.0",
"type": "module",
"description": "React library to connect Substrate based wallets to Gear dApps",
"author": "Gear Technologies",
Expand Down Expand Up @@ -40,7 +40,7 @@
"@gear-js/react-hooks": "0.14.0",
"@gear-js/ui": "0.5.28",
"@gear-js/vara-ui": "0.0.11",
"@polkadot/react-identicon": "3.10.1",
"@polkadot/react-identicon": "3.11.3",
"@tanstack/react-query": "5.56.2",
"@types/react": "18.3.2",
"@types/react-dom": "18.3.0",
Expand Down
4 changes: 3 additions & 1 deletion utils/wallet-connect/src/components/balance/balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function Balance({ theme }: Props) {
const { getFormattedBalance } = useBalanceFormat();

const { data: balances } = useDeriveBalancesAll({ address: account?.decodedAddress, watch: true });
const balance = isApiReady && balances ? getFormattedBalance(balances.freeBalance) : undefined;

const balance =
isApiReady && balances ? getFormattedBalance(balances.transferable || balances.availableBalance) : undefined;

if (!balance) return null;

Expand Down
Loading

0 comments on commit ff6528b

Please sign in to comment.