Skip to content

Commit

Permalink
fix: move error condition to top of the confirmation view component
Browse files Browse the repository at this point in the history
  • Loading branch information
clovisdasilvaneto committed Sep 17, 2024
1 parent 9f2bab4 commit 7250d54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tx/SignOrExecuteForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const SignOrExecute = (props: SignOrExecuteExtendedProps) => {

const [txDetails, error, isLoading] = useProposeTx(safeTx, props.txId, props.origin)

return isLoading || !safeTx || !txDetails ? (
<SignOrExecuteSkeleton />
) : error ? (
return error ? (
<TxCard>
<ErrorBoundary error={error} componentStack="SignOrExecuteForm/index" />
</TxCard>
) : isLoading || !safeTx || !txDetails ? (
<SignOrExecuteSkeleton />
) : (
<SignOrExecuteForm {...props} isCreation={!props.txId} txId={props.txId || txDetails.txId} txDetails={txDetails} />
)
Expand Down

0 comments on commit 7250d54

Please sign in to comment.