Skip to content

Commit 6ae5fd0

Browse files
authored
Remove success status from txs lists (#3276)
Resolves #3274
1 parent 2737539 commit 6ae5fd0

File tree

42 files changed

+28
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+28
-21
lines changed
-5.16 KB
-4.92 KB
-3.39 KB
-3.37 KB
-3.58 KB
-2.33 KB
-2.91 KB

ui/home/LatestTxsItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
6060
<Box ml={ 3 } w="calc(100% - 40px)">
6161
<HStack flexWrap={ tagsCount <= 3 ? 'nowrap' : 'wrap' } my="3px">
6262
<TxType types={ tx.transaction_types } isLoading={ isLoading }/>
63-
<TxStatus status={ tx.status } errorText={ tx.status === 'error' ? tx.result : undefined } isLoading={ isLoading }/>
63+
{ tx.status !== 'ok' && <TxStatus status={ tx.status } errorText={ tx.status === 'error' ? tx.result : undefined } isLoading={ isLoading }/> }
6464
<TxWatchListTags tx={ tx } isLoading={ isLoading }/>
6565
{ protocolTag && <EntityTag data={ protocolTag } isLoading={ isLoading } minW="0"/> }
6666
</HStack>

ui/home/LatestTxsItemMobile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const LatestTxsItem = ({ tx, isLoading }: Props) => {
4343
<Flex justifyContent="space-between">
4444
<HStack>
4545
<TxType types={ tx.transaction_types } isLoading={ isLoading }/>
46-
<TxStatus status={ tx.status } errorText={ tx.status === 'error' ? tx.result : undefined } isLoading={ isLoading }/>
46+
{ tx.status !== 'ok' && <TxStatus status={ tx.status } errorText={ tx.status === 'error' ? tx.result : undefined } isLoading={ isLoading }/> }
4747
<TxWatchListTags tx={ tx } isLoading={ isLoading }/>
4848
{ protocolTag && <EntityTag data={ protocolTag } isLoading={ isLoading } minW="0"/> }
4949
</HStack>
-5.21 KB

0 commit comments

Comments
 (0)