diff --git a/.changeset/tasty-emus-worry.md b/.changeset/tasty-emus-worry.md new file mode 100644 index 0000000000..6bcc9d6936 --- /dev/null +++ b/.changeset/tasty-emus-worry.md @@ -0,0 +1,6 @@ +--- +'@penumbra-zone/services': patch +'minifront': patch +--- + +Services: add priority scores to the `assets` service. Minifront: fix rendering issues diff --git a/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx b/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx index 17d9f5c8e4..a3bc306e91 100644 --- a/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx +++ b/apps/minifront/src/components/swap/swap-form/token-swap-input.tsx @@ -41,8 +41,9 @@ const getAssetOutBalance = ( const balanceViewMetadata = getMetadataFromBalancesResponse(balance); return ( - getAddressIndex(balance.accountAddress).equals(getAddressIndex(assetIn.accountAddress)) && - assetOut.equals(balanceViewMetadata) + getAddressIndex(balance.accountAddress).account === + getAddressIndex(assetIn.accountAddress).account && + assetOut.penumbraAssetId?.equals(balanceViewMetadata.penumbraAssetId) ); }); const matchedBalance = getBalanceView.optional()(match); @@ -161,6 +162,9 @@ export const TokenSwapInput = () => { + + +