Skip to content

Commit

Permalink
chore: show BRC-20 tokens on ledger, ref #5797
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Aug 27, 2024
1 parent a089d27 commit 7ea3e69
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/app/features/asset-list/asset-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ interface AssetListProps {
variant?: AssetListVariant;
}
export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListProps) {
const { whenWallet } = useWalletType();
const currentAccount = useCurrentStacksAccount();
const isLedger = useHasLedgerKeys();

Expand Down Expand Up @@ -117,15 +116,11 @@ export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListPro
<BitcoinTaprootAccountLoader current>
{taprootAccount => (
<>
{isReadOnly &&
whenWallet({
software: (
<Brc20TokensLoader>
{tokens => <Brc20TokenAssetList tokens={tokens} variant={variant} />}
</Brc20TokensLoader>
),
ledger: null,
})}
{isReadOnly && (
<Brc20TokensLoader>
{tokens => <Brc20TokenAssetList tokens={tokens} variant={variant} />}
</Brc20TokensLoader>
)}
{isReadOnly && (
<>
<Src20TokensLoader address={nativeSegwitAccount.address}>
Expand Down

0 comments on commit 7ea3e69

Please sign in to comment.