From 34c6881cfbf052d0cf2d5c5a9dcb4ef10d0807a1 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Sun, 10 Mar 2024 05:24:07 -0400 Subject: [PATCH] FIX: Options for sheet were broken on iPhone --- screen/wallets/viewEditMultisigCosigners.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/screen/wallets/viewEditMultisigCosigners.tsx b/screen/wallets/viewEditMultisigCosigners.tsx index 47af41eec..07459dbfc 100644 --- a/screen/wallets/viewEditMultisigCosigners.tsx +++ b/screen/wallets/viewEditMultisigCosigners.tsx @@ -413,15 +413,14 @@ const ViewEditMultisigCosigners = ({ route }: Props) => { /> )} - {/* destructiveButtonIndex and cancelButtonIndex are different numbers on Mac Catalyst and mobile */} { disabled: vaultKeyData.isLoading, buttonType: MultipleStepsListItemButtohType.full, - onPress: buttonIndex => { - if ((isDesktop && buttonIndex === 1) || (!isDesktop && buttonIndex === 2)) return; + onPress: (buttonIndex: number) => { + if (buttonIndex === 0) return; LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); setVaultKeyData({ ...vaultKeyData,