@@ -11,6 +11,7 @@ import {
1111 updateSignerTitle ,
1212} from "@tallyho/tally-background/redux-slices/ui"
1313import { deriveAddress } from "@tallyho/tally-background/redux-slices/keyrings"
14+ import { ROOTSTOCK } from "@tallyho/tally-background/constants"
1415import {
1516 AccountTotal ,
1617 selectCurrentNetworkAccountTotalsByCategory ,
@@ -77,12 +78,14 @@ function WalletTypeHeader({
7778 accountType,
7879 onClickAddAddress,
7980 walletNumber,
81+ path,
8082 accountSigner,
8183} : {
8284 accountType : AccountType
8385 onClickAddAddress ?: ( ) => void
8486 accountSigner : AccountSigner
8587 walletNumber ?: number
88+ path ?: string | null
8689} ) {
8790 const { t } = useTranslation ( )
8891 const { title, icon } = walletTypeDetails [ accountType ]
@@ -103,10 +106,13 @@ function WalletTypeHeader({
103106 const sectionTitle = useMemo ( ( ) => {
104107 if ( accountType === AccountType . ReadOnly ) return title
105108
106- if ( sectionCustomName ) return sectionCustomName
109+ let networkName = "" // Only for Rootstock
110+ if ( path === ROOTSTOCK . derivationPath ) networkName = `(${ ROOTSTOCK . name } )`
107111
108- return `${ title } ${ walletNumber } `
109- } , [ accountType , title , sectionCustomName , walletNumber ] )
112+ if ( sectionCustomName ) return `${ sectionCustomName } ${ networkName } `
113+
114+ return `${ title } ${ walletNumber } ${ networkName } `
115+ } , [ accountType , title , sectionCustomName , walletNumber , path ] )
110116
111117 const history = useHistory ( )
112118 const areKeyringsUnlocked = useAreKeyringsUnlocked ( false )
@@ -339,6 +345,7 @@ export default function AccountsNotificationPanelAccounts({
339345 < WalletTypeHeader
340346 accountType = { accountType }
341347 walletNumber = { idx + 1 }
348+ path = { accountTotalsByKeyringId [ 0 ] . path }
342349 accountSigner = {
343350 accountTotalsByKeyringId [ 0 ] . accountSigner
344351 }
0 commit comments