1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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 GitHub
parent 9d3cdd1b79
commit c6aa4f38c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -813,6 +813,7 @@ export default class ConfirmTransactionBase extends Component {
image,
isApprovalOrRejection,
assetStandard,
title,
} = this.props;
const {
submitting,
@ -873,6 +874,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()}