Skip to content

Commit

Permalink
Fix #24322 - Disable edits for all dapp initiated transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed May 1, 2024
1 parent f2ec444 commit 1660ff8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import {
///: END:ONLY_INCLUDE_IF

import { BlockaidResultType } from '../../../../../shared/constants/security-provider';
import { ORIGIN_METAMASK } from '../../../../../shared/constants/app';
import {
ConfirmPageContainerHeader,
ConfirmPageContainerContent,
Expand Down Expand Up @@ -213,7 +214,7 @@ const ConfirmPageContainer = (props) => {
/>
) : (
<ConfirmPageContainerHeader
showEdit={showEdit}
showEdit={origin === ORIGIN_METAMASK ? showEdit : false}
onEdit={() => onEdit()}
showAccountInHeader={showAccountInHeader}
accountAddress={fromAddress}
Expand Down

0 comments on commit 1660ff8

Please sign in to comment.