1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove unnecessary optional chain operator (#10256)

This operator is being used under a condition that guarantees that the
property is present, so the optional chain operator is useless.
This commit is contained in:
Mark Stacey 2021-01-22 17:32:56 -03:30 committed by GitHub
parent 875544e1fe
commit 9e7a799583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ export default class ConfirmDecryptMessage extends Component {
{originMetadata?.icon ? (
<img
className="request-decrypt-message__visual-identicon"
src={originMetadata?.icon}
src={originMetadata.icon}
alt=""
/>
) : (