Skip to content

Commit

Permalink
fix: rename (Substrate) to (Polkadot) in network details (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm authored Dec 11, 2024
1 parent c58138c commit 799ca10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/extension/src/ui/domains/SendFunds/useNetworkDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useSendFunds } from "./useSendFunds"
* @returns A function that formats a network name for display.
* @description
* For networks which have both a Substrate and Ethereum chain, the network name will be formatted as:
* Network Name (Substrate) or Network Name (Ethereum)
* Network Name (Polkadot) or Network Name (Ethereum)
*
* For networks which have only a Substrate or Ethereum chain, the network name will be formatted as:
* Network Name
Expand All @@ -20,7 +20,7 @@ export const useFormatNetworkName = () => {
return useCallback(
(chain?: Chain | CustomChain | null, evmNetwork?: EvmNetwork | CustomEvmNetwork | null) =>
chain?.name
? `${chain.name}${chain.evmNetworks?.length > 0 ? ` (${t("Substrate")})` : ""}`
? `${chain.name}${chain.evmNetworks?.length > 0 ? ` (${t("Polkadot")})` : ""}`
: evmNetwork
? `${evmNetwork?.name}${evmNetwork?.substrateChain ? ` (${t("Ethereum")})` : ""}`
: `${t("Chain")} ${(chain ?? evmNetwork)?.id}`,
Expand Down

0 comments on commit 799ca10

Please sign in to comment.