Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased (develop)

- changed: Route maestro test builds to a dedicated Zealot channel so they no longer appear in the production release list.
- changed: Hide the wallet "Get Raw Keys" option behind Developer Mode, while still showing it for wallets that fail to load.

## 4.49.0 (staging)

Expand Down
8 changes: 8 additions & 0 deletions src/components/modals/WalletListMenuModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ export const WalletListMenuModal: React.FC<Props> = props => {
const pausedWallets = useSelector(
state => state.ui.settings.userPausedWalletsSet
)
const developerModeOn = useSelector(
state => state.ui.settings.developerModeOn
)

const wallet = useWatch(account, 'currencyWallets')[walletId]

Expand Down Expand Up @@ -274,6 +277,11 @@ export const WalletListMenuModal: React.FC<Props> = props => {
)
continue

// Hide `getRawKeys` behind Developer Mode. Wallets that fail to load
// still expose raw keys via the `wallet == null` branch above, so a
// broken wallet can always be recovered regardless of this setting.
if (value === 'getRawKeys' && !developerModeOn) continue

result.push({ label, value })
}

Expand Down
Loading