From 35975494ea80e5adc79d28168d3773aa045c7631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harrison=20Mendon=C3=A7a?= Date: Wed, 8 Jan 2025 12:13:11 -0300 Subject: [PATCH] fix: fix transfer balance (#1481) --- apps/namadillo/package.json | 2 +- apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/namadillo/package.json b/apps/namadillo/package.json index faa98cd6c..ac9510273 100644 --- a/apps/namadillo/package.json +++ b/apps/namadillo/package.json @@ -1,6 +1,6 @@ { "name": "@namada/namadillo", - "version": "1.1.10", + "version": "1.1.11", "description": "Namadillo", "repository": "https://github.com/anoma/namada-interface/", "author": "Heliax Dev ", diff --git a/apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx b/apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx index c0dad9023..bd2ba5e23 100644 --- a/apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx +++ b/apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx @@ -8,7 +8,10 @@ import { TransferModule, } from "App/Transfer/TransferModule"; import { allDefaultAccountsAtom } from "atoms/accounts"; -import { namadaTransparentAssetsAtom } from "atoms/balance/atoms"; +import { + namadaShieldedAssetsAtom, + namadaTransparentAssetsAtom, +} from "atoms/balance/atoms"; import { chainParametersAtom } from "atoms/chain/atoms"; import { applicationFeaturesAtom, rpcUrlAtom } from "atoms/settings"; import BigNumber from "bignumber.js"; @@ -40,7 +43,9 @@ export const NamadaTransfer: React.FC = () => { const defaultAccounts = useAtomValue(allDefaultAccountsAtom); const { data: availableAssetsData, isLoading: isLoadingAssets } = - useAtomValue(namadaTransparentAssetsAtom); + useAtomValue( + shielded ? namadaShieldedAssetsAtom : namadaTransparentAssetsAtom + ); const { storeTransaction } = useTransactionActions();