Skip to content

Commit

Permalink
fix: add showMethodCall into the confirmationView component
Browse files Browse the repository at this point in the history
  • Loading branch information
clovisdasilvaneto committed Sep 18, 2024
1 parent eacfd74 commit 352fdd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/tx/SignOrExecuteForm/SignOrExecuteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@ export const SignOrExecuteForm = ({
</ErrorBoundary>
)}

<ConfirmationView isCreation={isCreation} txDetails={props.txDetails} safeTx={safeTx} isBatch={props.isBatch} />
<ConfirmationView
isCreation={isCreation}
txDetails={props.txDetails}
safeTx={safeTx}
isBatch={props.isBatch}
showMethodCall={props.showMethodCall}
/>

{!isCounterfactualSafe && !props.isRejection && <BlockaidBalanceChanges />}
</TxCard>
Expand Down
2 changes: 2 additions & 0 deletions src/components/tx/confirmation-views/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type ConfirmationViewProps = {
isBatch?: boolean
isApproval?: boolean
isCreation?: boolean
showMethodCall?: boolean
}

const getConfirmationViewComponent = (txType: TransactionInfoType, props: NarrowConfirmationViewProps) => {
Expand Down Expand Up @@ -54,6 +55,7 @@ const ConfirmationView = (props: ConfirmationViewProps) => {
decodedData={decodedData}
showMultisend={!props.isBatch}
showMethodCall={
props.showMethodCall &&
!ConfirmationViewComponent &&
!showTxDetails &&
!props.isApproval &&
Expand Down

0 comments on commit 352fdd4

Please sign in to comment.