Skip to content

Commit

Permalink
feat(suite): for unreliable transaction coins, hide the dashbaord sum…
Browse files Browse the repository at this point in the history
…mary
  • Loading branch information
vojtatranta committed Feb 10, 2025
1 parent 2156768 commit 0765c01
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { getUnixTime } from 'date-fns';
import styled from 'styled-components';

import { calcTicks, calcTicksFromData } from '@suite-common/suite-utils';
import { areNetworkTransactionsUnreliable } from '@suite-common/wallet-config';
import { Button, Card, Column, Row, variables } from '@trezor/components';

import { getGraphDataForInterval, updateGraphData } from 'src/actions/wallet/graphActions';
Expand Down Expand Up @@ -137,14 +138,16 @@ export const TransactionSummary = ({ account }: TransactionSummaryProps) => {
</Column>
</>
)}
<SummaryCards
selectedRange={selectedRange}
dataInterval={dataInterval}
data={data}
localCurrency={localCurrency}
account={account}
isLoading={isLoading}
/>
{!areNetworkTransactionsUnreliable(account.symbol) && (
<SummaryCards
selectedRange={selectedRange}
dataInterval={dataInterval}
data={data}
localCurrency={localCurrency}
account={account}
isLoading={isLoading}
/>
)}
</Column>
);
};

0 comments on commit 0765c01

Please sign in to comment.