1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

Summary tokens filter to unique account

This commit is contained in:
Szymon Lesisz 2018-05-09 16:35:30 +02:00
parent fd603c6a70
commit 7c0c884c28

View File

@ -36,7 +36,7 @@ const _render = (props: Props, state: AccountState): React$Element<string> => {
if (!device || !account) return <section></section>; if (!device || !account) return <section></section>;
const abstractAccount = props.abstractAccount; const abstractAccount = props.abstractAccount;
const tokens = props.tokens.filter(t => t.ethAddress === account.address && t.network === account.network); const tokens = props.tokens.filter(t => t.ethAddress === account.address && t.network === account.network && t.deviceState === abstractAccount.deviceState);
return ( return (