From 7250d5410e8aee1bf6d4f1d4f88e67c83c07184b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=B3vis=20Neto?= Date: Tue, 17 Sep 2024 14:21:19 +0200 Subject: [PATCH] fix: move error condition to top of the confirmation view component --- src/components/tx/SignOrExecuteForm/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tx/SignOrExecuteForm/index.tsx b/src/components/tx/SignOrExecuteForm/index.tsx index 419b696157..095ca2e674 100644 --- a/src/components/tx/SignOrExecuteForm/index.tsx +++ b/src/components/tx/SignOrExecuteForm/index.tsx @@ -27,12 +27,12 @@ const SignOrExecute = (props: SignOrExecuteExtendedProps) => { const [txDetails, error, isLoading] = useProposeTx(safeTx, props.txId, props.origin) - return isLoading || !safeTx || !txDetails ? ( - - ) : error ? ( + return error ? ( + ) : isLoading || !safeTx || !txDetails ? ( + ) : ( )