diff --git a/src/components/TransactionValue.tsx b/src/components/TransactionValue.tsx index 618ec2e..c7a8d2c 100644 --- a/src/components/TransactionValue.tsx +++ b/src/components/TransactionValue.tsx @@ -6,6 +6,7 @@ type TransactionValueProps = { value: BigNumber; decimals?: number; hideUnit?: boolean; + unitName?: string; }; /** @@ -22,16 +23,17 @@ const TransactionValue: React.FC = ({ value, decimals = 18, hideUnit, + unitName = "ETH", }) => { const formattedValue = formatValue(value, decimals); return ( {formattedValue} - {!hideUnit && " Ether"} + {!hideUnit && ` ${unitName}`} ); };