Skip to content

Commit

Permalink
fix: Show readonly approval editor only for existing transactions (#2403
Browse files Browse the repository at this point in the history
)
  • Loading branch information
usame-algan authored Aug 16, 2023
1 parent 92c2864 commit 76f5dfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/tx/SignOrExecuteForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ const SignOrExecuteForm = (props: SignOrExecuteProps): ReactElement => {
<TxCard>
{props.children}

<ErrorBoundary fallback={<div>Error parsing data</div>}>
<ApprovalEditor safeTransaction={safeTx} />
</ErrorBoundary>
{!isCreation && (
<ErrorBoundary fallback={<div>Error parsing data</div>}>
<ApprovalEditor safeTransaction={safeTx} />
</ErrorBoundary>
)}

<DecodedTx
tx={safeTx}
Expand Down

0 comments on commit 76f5dfb

Please sign in to comment.