Skip to content

Commit

Permalink
fix: do not show method call for approve transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
clovisdasilvaneto committed Sep 18, 2024
1 parent 20c52f2 commit e004613
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tx/confirmation-views/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type ConfirmationViewProps = {
isBatch?: boolean
isApproval?: boolean
isCreation?: boolean
showMethodCall?: boolean
}

const getConfirmationViewComponent = (txType: TransactionInfoType, props: NarrowConfirmationViewProps) => {
Expand Down Expand Up @@ -55,11 +54,12 @@ const ConfirmationView = (props: ConfirmationViewProps) => {
decodedData={decodedData}
showMultisend={!props.isBatch}
showMethodCall={
props.showMethodCall &&
!ConfirmationViewComponent &&
!showTxDetails &&
!props.isApproval &&
isGenericConfirmation(decodedData) &&
!ConfirmationViewComponent
decodedData?.method !== '' &&
decodedData?.method !== 'approve'
}
/>
</>
Expand Down

0 comments on commit e004613

Please sign in to comment.