From d3f1260d3e511934088c6d3686bc6700860261df Mon Sep 17 00:00:00 2001
From: Josh Leonard <30185185+josheleonard@users.noreply.github.com>
Date: Wed, 4 Jan 2023 15:06:57 -0700
Subject: [PATCH] fix: activity page tx intent action title casing

---
 .../desktop/portfolio-transaction-item/index.tsx          | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/brave_wallet_ui/components/desktop/portfolio-transaction-item/index.tsx b/components/brave_wallet_ui/components/desktop/portfolio-transaction-item/index.tsx
index 328d7443bb52..279cc552bfa4 100644
--- a/components/brave_wallet_ui/components/desktop/portfolio-transaction-item/index.tsx
+++ b/components/brave_wallet_ui/components/desktop/portfolio-transaction-item/index.tsx
@@ -335,10 +335,9 @@ export const PortfolioTransactionItem = React.forwardRef<HTMLDivElement, Props>(
       )
     }
 
-    const text = getLocale('braveWalletTransactionSent')
     return (
       <>
-        {displayAccountName ? text : toProperCase(text)}{' '}
+        {toProperCase(getLocale('braveWalletTransactionSent'))}{' '}
         <AddressOrAsset
           // Disabled for ERC721 tokens until we have NFT meta data
           disabled={
@@ -383,9 +382,10 @@ export const PortfolioTransactionItem = React.forwardRef<HTMLDivElement, Props>(
         <DetailColumn>
           <DetailRow>
 
-            {displayAccountName && // Display account name only if rendered under Portfolio view
+            {/* Display account name only if rendered under Portfolio view */}
+            {displayAccountName && account?.name &&
               <DetailTextLight>
-                {account?.name}
+                {account.name}
               </DetailTextLight>
             }