diff --git a/src/pages/transactions/TransactionPage.tsx b/src/pages/transactions/TransactionPage.tsx index d9cd103..490ecd1 100644 --- a/src/pages/transactions/TransactionPage.tsx +++ b/src/pages/transactions/TransactionPage.tsx @@ -29,7 +29,7 @@ /** Set of network transaction types that should only display a single address * instead of both 'from' and 'to' */ const SINGLE_ADDRESS_TYPES: TenebraTransactionType[] = [ - "mined", "name_purchase", "name_a_record" + "mined", "name_purchase", "name_a_record", "staking" ]; interface ParamTypes { @@ -43,7 +43,7 @@ // 'to' (e.g. mined, name purchase) const onlySingleAddress = SINGLE_ADDRESS_TYPES.includes(type); const singleAddress = onlySingleAddress - ? (type === "mined" ? to : from) + ? (type === "mined" || (type === "staking" && from === "staking") ? to : from) : undefined; return <> diff --git a/src/pages/transactions/TransactionsTable.tsx b/src/pages/transactions/TransactionsTable.tsx index 66af9b4..ae61a34 100644 --- a/src/pages/transactions/TransactionsTable.tsx +++ b/src/pages/transactions/TransactionsTable.tsx @@ -95,7 +95,7 @@ title: tStr("columnFrom"), dataIndex: "from", key: "from", - render: (from, tx) => from && tx.type !== "mined" && ( + render: (from, tx) => from && tx.type !== "mined" && (tx.type !== "staking" || tx.from !== "staking") && ( to && tx.type !== "name_purchase" && tx.type !== "name_a_record" && ( + render: (to, tx) => to && tx.type !== "name_purchase" && tx.type !== "name_a_record" && (tx.type !== "staking" || tx.to !== "staking") && (