diff --git a/src/components/transactions/TxDetails/TxData/DecodedData/Multisend/index.tsx b/src/components/transactions/TxDetails/TxData/DecodedData/Multisend/index.tsx
index 0672be131c..5110562ff6 100644
--- a/src/components/transactions/TxDetails/TxData/DecodedData/Multisend/index.tsx
+++ b/src/components/transactions/TxDetails/TxData/DecodedData/Multisend/index.tsx
@@ -71,7 +71,6 @@ export const Multisend = ({ txData, compact = false }: MultisendProps): ReactEle
if (!multiSendTransactions) {
return null
}
-
return (
<>
diff --git a/src/components/tx/SignOrExecuteForm/SignOrExecuteForm.tsx b/src/components/tx/SignOrExecuteForm/SignOrExecuteForm.tsx
index a7fa0cfca5..08e3bfdafd 100644
--- a/src/components/tx/SignOrExecuteForm/SignOrExecuteForm.tsx
+++ b/src/components/tx/SignOrExecuteForm/SignOrExecuteForm.tsx
@@ -39,7 +39,7 @@ import ConfirmationView from '../confirmation-views'
export type SubmitCallback = (txId: string, isExecuted?: boolean) => void
export type SignOrExecuteProps = {
- txId?: string
+ txId: string
onSubmit?: SubmitCallback
children?: ReactNode
isExecutable?: boolean
@@ -90,7 +90,6 @@ export const SignOrExecuteForm = ({
const isBatchable = props.isBatchable !== false && safeTx && !isDelegateCall(safeTx)
- // const showTxDetails = props.txId && txDetails && !isCustomTxInfo(txDetails.txInfo)
const isDelegate = useIsWalletDelegate()
const [trigger] = useLazyGetTransactionDetailsQuery()
const [readableApprovals] = useApprovalInfos({ safeTransaction: safeTx })
diff --git a/src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx b/src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx
index 65d65e6a0a..0b940bb0c9 100644
--- a/src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx
+++ b/src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx
@@ -49,4 +49,23 @@ describe('SignOrExecute', () => {
expect(getByTestId('sign-btn')).toBeInTheDocument()
expect(container).toMatchSnapshot()
})
+
+ it('should display an error screen', async () => {
+ jest.spyOn(hooks, 'useProposeTx').mockReturnValue([undefined, new Error('This is a mock error message'), false])
+
+ const { container } = render(
+
+
+ ,
+ )
+
+ expect(container.querySelector('sign-btn')).not.toBeInTheDocument()
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/components/tx/SignOrExecuteForm/__tests__/__snapshots__/SignOrExecute.test.tsx.snap b/src/components/tx/SignOrExecuteForm/__tests__/__snapshots__/SignOrExecute.test.tsx.snap
index c85234f43f..1e6b92d792 100644
--- a/src/components/tx/SignOrExecuteForm/__tests__/__snapshots__/SignOrExecute.test.tsx.snap
+++ b/src/components/tx/SignOrExecuteForm/__tests__/__snapshots__/SignOrExecute.test.tsx.snap
@@ -75,67 +75,7 @@ exports[`SignOrExecute should display a confirmation screen 1`] = `
-
-
- safeTxGas:
-
-
- 0
-
-
-
-
- Raw data:
-
-
-
- 0
- bytes
-
-
-
-
-
-
-
+ />