diff --git a/App.js b/App.js index 8d5fe511d..e805a6cb1 100644 --- a/App.js +++ b/App.js @@ -260,7 +260,6 @@ const App = () => { message: contentType === ClipboardContentType.BITCOIN ? loc.wallets.clipboard_bitcoin : loc.wallets.clipboard_lightning, options: [loc._.cancel, loc._.continue], cancelButtonIndex: 0, - destructiveButtonIndex: undefined, // Add this if you have a destructive button, otherwise omit or set as undefined }, buttonIndex => { switch (buttonIndex) { diff --git a/screen/wallets/transactions.js b/screen/wallets/transactions.js index 7c7cda036..19cb1866f 100644 --- a/screen/wallets/transactions.js +++ b/screen/wallets/transactions.js @@ -425,21 +425,19 @@ const WalletTransactions = ({ navigation }) => { }, buttonIndex => { switch (buttonIndex) { - case 0: // Cancel button - // Handle cancel, if necessary + case 0: break; - case 1: // Choose photo + case 1: choosePhoto(); break; - case 2: // Scan QR code + case 2: scanQrHelper(navigate, onBarCodeRead); break; - case 3: // Copy from clipboard, this case exists only if clipboard is not empty + case 3: if (!isClipboardEmpty) { copyFromClipboard(); } break; - // Add more cases if there are additional buttons } }, );