Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Nov 15, 2022
1 parent 0fc3903 commit 358dacb
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1157,14 +1157,12 @@ export default class ConfirmTransactionBase extends Component {
requestsWaitingText,
} = this.getNavigateTxData();

let functionType;
let isContractInteractionFromDapp = false;
if (
const isContractInteractionFromDapp =
txData.type === TRANSACTION_TYPES.CONTRACT_INTERACTION &&
txData.origin !== 'metamask'
) {
txData.origin !== 'metamask';
let functionType;
if (isContractInteractionFromDapp) {
functionType = getMethodName(name);
isContractInteractionFromDapp = true;
}

if (!functionType) {
Expand Down

0 comments on commit 358dacb

Please sign in to comment.