1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Fix approve all warning modal (#18613)

* Fix approve all warning modal

* fix

* fix

* fix
This commit is contained in:
Jyoti Puri 2023-04-18 21:22:16 +05:30 committed by Dan Miller
parent 3cc82898a6
commit 600909418c
3 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,7 @@ const SetApproveForAllWarning = ({
key="non_custodial_bold"
className="set-approval-for-all-warning__content__bold"
>
{t('nftWarningContentBold', [collectionName])}
{t('nftWarningContentBold', [collectionName || ''])}
</strong>,
<strong key="non_custodial_grey">
{t('nftWarningContentGrey')}

View File

@ -144,6 +144,7 @@ export default function ConfirmApprove({
const { iconUrl: siteImage = '' } = subjectMetadata[origin] || {};
// Code below may need a additional look as ERC1155 tokens do not have a name
let tokensText;
if (
assetStandard === TokenStandard.ERC721 ||

View File

@ -950,6 +950,7 @@ export default class ConfirmTransactionBase extends Component {
image,
isApprovalOrRejection,
assetStandard,
title,
} = this.props;
const {
submitting,
@ -1010,6 +1011,7 @@ export default class ConfirmTransactionBase extends Component {
showEdit={!isContractInteractionFromDapp && Boolean(onEdit)}
action={functionType}
image={image}
title={title}
titleComponent={this.renderTitleComponent()}
subtitleComponent={this.renderSubtitleComponent()}
detailsComponent={this.renderDetails()}