Skip to content

Commit

Permalink
Make token view not show the token with long denom
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed May 17, 2020
1 parent c2ec0dc commit c3f5251
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/ui/popup/pages/main/tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export const TokensView: FunctionComponent = observer(() => {
<div>
<h2>IBC Tokens</h2>
{tokens.map((asset, i) => {
if (asset.denom.split("/").length > 3) {
return null;
}

return (
<React.Fragment key={asset.denom}>
<TokenItem token={asset} />
Expand Down
5 changes: 3 additions & 2 deletions src/ui/popup/stores/account/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class AccountStore {

// Not action
private async loadAssetsFromStorage(bech32Address: string): Promise<Coin[]> {
const items = await browser.storage.local.get();
/*const items = await browser.storage.local.get();
const coins: Coin[] = [];
const assets = items?.assets;
Expand All @@ -249,6 +249,7 @@ export class AccountStore {
}
}
return coins;
return coins;*/
return [];
}
}

0 comments on commit c3f5251

Please sign in to comment.