Skip to content

Commit

Permalink
hide settingsButton for external accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster committed Dec 23, 2024
1 parent 23c53ca commit 0388746
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions views/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' ? (
<SettingsButton />
) : undefined
) : haveInvoice ? (
selectedIndex === 2 ? (
BackendUtils.supportsAddressTypeSelection() ? (
BackendUtils.supportsAddressTypeSelection() &&
account === 'default' ? (
<SettingsButton />
) : (
<ClearButton />
Expand All @@ -1529,6 +1531,7 @@ export default class Receive extends React.Component<
)
) : !creatingInvoice &&
BackendUtils.supportsAddressTypeSelection() &&
account === 'default' &&
(selectedIndex === 2 || selectedIndex === 1) ? (
<SettingsButton />
) : undefined
Expand Down

0 comments on commit 0388746

Please sign in to comment.