From 0765c0115718c1a932ba5eaef0b5b20158d06234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Tranta?= Date: Fri, 7 Feb 2025 13:44:01 +0100 Subject: [PATCH] feat(suite): for unreliable transaction coins, hide the dashbaord summary --- .../components/TransactionSummary.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/suite/src/views/wallet/transactions/components/TransactionSummary.tsx b/packages/suite/src/views/wallet/transactions/components/TransactionSummary.tsx index e2a48bd631e..e6fd95209e9 100644 --- a/packages/suite/src/views/wallet/transactions/components/TransactionSummary.tsx +++ b/packages/suite/src/views/wallet/transactions/components/TransactionSummary.tsx @@ -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'; @@ -137,14 +138,16 @@ export const TransactionSummary = ({ account }: TransactionSummaryProps) => { )} - + {!areNetworkTransactionsUnreliable(account.symbol) && ( + + )} ); };