From 608d0043bca00582c90ee7faf7bb3bbb922f452f Mon Sep 17 00:00:00 2001 From: Usame Algan <5880855+usame-algan@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:25:17 +0100 Subject: [PATCH 01/48] fix: Disable Add to Batch button for safe apps [SW-363] (#4623) --- .../tx/SignOrExecuteForm/SignForm.tsx | 4 ++- .../__tests__/SignForm.test.tsx | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/components/tx/SignOrExecuteForm/SignForm.tsx b/src/components/tx/SignOrExecuteForm/SignForm.tsx index 2185171e00..e2c605d932 100644 --- a/src/components/tx/SignOrExecuteForm/SignForm.tsx +++ b/src/components/tx/SignOrExecuteForm/SignForm.tsx @@ -101,6 +101,8 @@ export const SignForm = ({ const submitDisabled = !safeTx || !isSubmittable || disableSubmit || cannotPropose || (needsRiskConfirmation && !isRiskConfirmed) + const isSafeAppTransaction = !!origin + return (