Skip to content

Commit

Permalink
Rename KeysOnlyModeTokenIds
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Dec 26, 2023
1 parent 49f5007 commit 0b23969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modals/WalletListModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ interface Props {
showCreateWallet?: boolean
}

const KeysOnlyModeTokenIds: EdgeAsset[] = Object.keys(SPECIAL_CURRENCY_INFO)
const keysOnlyModeAssets: EdgeAsset[] = Object.keys(SPECIAL_CURRENCY_INFO)
.filter(pluginId => isKeysOnlyPlugin(pluginId))
.map(pluginId => ({
pluginId
Expand Down Expand Up @@ -115,7 +115,7 @@ export function WalletListModal(props: Props) {
// Prevent plugins that are "watch only" from being used unless it's explicitly allowed
const walletListExcludeAssets = React.useMemo(() => {
const result = excludeAssets
return allowKeysOnlyMode ? result : KeysOnlyModeTokenIds.concat(result ?? [])
return allowKeysOnlyMode ? result : keysOnlyModeAssets.concat(result ?? [])
}, [allowKeysOnlyMode, excludeAssets])

// #endregion Init
Expand Down

0 comments on commit 0b23969

Please sign in to comment.