diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 9ac56aaa76c6..270dcc461708 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2971,6 +2971,12 @@ "replace": { "message": "replace" }, + "requestFlaggedAsMaliciousFallbackCopyReason": { + "message": "The security provider has not shared additional details" + }, + "requestFlaggedAsMaliciousFallbackCopyReasonTitle": { + "message": "Request flagged as malicious" + }, "requestMayNotBeSafe": { "message": "Request may not be safe" }, diff --git a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js index 96e7f92cc6f2..05f8ff32d87b 100644 --- a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js @@ -191,13 +191,15 @@ export default class ConfirmPageContainerContent extends Component { {ethGasPriceWarning && ( )} - {txData?.securityProviderResponse?.flagAsDangerous !== undefined && + {(txData?.securityProviderResponse?.flagAsDangerous !== undefined && txData?.securityProviderResponse?.flagAsDangerous !== - SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS && ( - - )} + SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS) || + (txData?.securityProviderResponse && + Object.keys(txData.securityProviderResponse).length === 0) ? ( + + ) : null} - {txData?.securityProviderResponse?.flagAsDangerous !== undefined && + {(txData?.securityProviderResponse?.flagAsDangerous !== undefined && txData?.securityProviderResponse?.flagAsDangerous !== - SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS && ( - - )} + SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS) || + (txData?.securityProviderResponse && + Object.keys(txData.securityProviderResponse).length === 0) ? ( + + ) : null}
+ {(txData?.securityProviderResponse?.flagAsDangerous !== undefined && + txData?.securityProviderResponse?.flagAsDangerous !== + SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS) || + (txData?.securityProviderResponse && + Object.keys(txData.securityProviderResponse).length === 0) ? ( + + ) : null} {!isMatchingAddress && (
- {txData?.securityProviderResponse?.flagAsDangerous !== undefined && + {(txData?.securityProviderResponse?.flagAsDangerous !== undefined && txData?.securityProviderResponse?.flagAsDangerous !== - SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS && ( - - )} + SECURITY_PROVIDER_MESSAGE_SEVERITIES.NOT_MALICIOUS) || + (txData?.securityProviderResponse && + Object.keys(txData.securityProviderResponse).length === 0) ? ( + + ) : null}