1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

fix/18577: Add title back for approving ERC20 token (#18617)

* fix/18577: Add title back for approving ERC20 token

* Apply suggestions from code review

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>

---------

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
This commit is contained in:
Danica Shen 2023-04-18 15:49:31 +02:00 committed by Dan Miller
parent 9fa099f5fc
commit f8f1abf53c

View File

@ -126,6 +126,7 @@ export default function ConfirmTokenTransactionBase({
assetName || `${getTitleTokenDescription('text')} #${tokenId}`;
} else if (assetStandard === TokenStandard.ERC20) {
title = `${tokenAmount} ${tokenSymbol}`;
subtotalDisplay = `${tokenAmount} ${tokenSymbol}`;
}
const hexWeiValue = useMemo(() => {