From 579b30e96be45b286089770cf368dfcf4a4f3620 Mon Sep 17 00:00:00 2001 From: katspaugh Date: Mon, 7 Aug 2023 08:10:06 +0200 Subject: [PATCH] Fix: tx can have been created w/o signatures --- src/components/tx/SignOrExecuteForm/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tx/SignOrExecuteForm/index.tsx b/src/components/tx/SignOrExecuteForm/index.tsx index 5a73afbf49..06519a5cdd 100644 --- a/src/components/tx/SignOrExecuteForm/index.tsx +++ b/src/components/tx/SignOrExecuteForm/index.tsx @@ -37,7 +37,7 @@ const SignOrExecuteForm = (props: SignOrExecuteProps): ReactElement => { const { transactionExecution } = useAppSelector(selectSettings) const [shouldExecute, setShouldExecute] = useState(transactionExecution) const { safeTx, safeTxError } = useContext(SafeTxContext) - const isCreation = safeTx?.signatures.size === 0 + const isCreation = !props.txId const isNewExecutableTx = useImmediatelyExecutable() && isCreation const isCorrectNonce = useValidateNonce(safeTx) const [decodedData, decodedDataError, decodedDataLoading] = useDecodeTx(safeTx)