From 038874678122bac9778b44799d740ba95c4920be Mon Sep 17 00:00:00 2001 From: myxmaster Date: Mon, 23 Dec 2024 20:17:20 +0100 Subject: [PATCH] hide settingsButton for external accounts --- views/Receive.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/views/Receive.tsx b/views/Receive.tsx index 6926f2f6c..acaa18228 100644 --- a/views/Receive.tsx +++ b/views/Receive.tsx @@ -1514,12 +1514,14 @@ export default class Receive extends React.Component< posStatus === 'active' || hideRightHeaderComponent ? undefined : route.params ?.selectedIndex === 2 ? ( - BackendUtils.supportsAddressTypeSelection() ? ( + BackendUtils.supportsAddressTypeSelection() && + account === 'default' ? ( ) : undefined ) : haveInvoice ? ( selectedIndex === 2 ? ( - BackendUtils.supportsAddressTypeSelection() ? ( + BackendUtils.supportsAddressTypeSelection() && + account === 'default' ? ( ) : ( @@ -1529,6 +1531,7 @@ export default class Receive extends React.Component< ) ) : !creatingInvoice && BackendUtils.supportsAddressTypeSelection() && + account === 'default' && (selectedIndex === 2 || selectedIndex === 1) ? ( ) : undefined