diff --git a/.changeset/eight-rockets-behave.md b/.changeset/eight-rockets-behave.md new file mode 100644 index 000000000000..912c6123e5cc --- /dev/null +++ b/.changeset/eight-rockets-behave.md @@ -0,0 +1,6 @@ +--- +"ledger-live-desktop": patch +"live-mobile": patch +--- + +Fix feature flag for Polygon Zk EVM diff --git a/apps/ledger-live-desktop/src/renderer/modals/AddAccounts/steps/StepChooseCurrency.tsx b/apps/ledger-live-desktop/src/renderer/modals/AddAccounts/steps/StepChooseCurrency.tsx index dfadc0eea411..ca35690ee626 100644 --- a/apps/ledger-live-desktop/src/renderer/modals/AddAccounts/steps/StepChooseCurrency.tsx +++ b/apps/ledger-live-desktop/src/renderer/modals/AddAccounts/steps/StepChooseCurrency.tsx @@ -57,14 +57,16 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => { const internetComputer = useFeature("currencyInternetComputer"); const telosEvm = useFeature("currencyTelosEvm"); const coreum = useFeature("currencyCoreum"); - const polygon_zk_evm = useFeature("currencyPolygonZkEvm"); - const polygon_zk_evm_testnet = useFeature("currencyPolygonZkEvmTestnet"); + const polygonZkEvm = useFeature("currencyPolygonZkEvm"); + const polygonZkEvmTestnet = useFeature("currencyPolygonZkEvmTestnet"); const base = useFeature("currencyBase"); - const base_goerli = useFeature("currencyBaseGoerli"); + const baseGoerli = useFeature("currencyBaseGoerli"); const klaytn = useFeature("currencyKlaytn"); const featureFlaggedCurrencies = useMemo( () => ({ + // Keys in this list must match an existing currency.id + // Pay attention to the case! axelar, stargaze, secretNetwork, @@ -93,10 +95,10 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => { internet_computer: internetComputer, telos: telosEvm, coreum, - polygonZkEvm: polygon_zk_evm, - polygonZkEvmTestnet: polygon_zk_evm_testnet, + polygon_zk_evm: polygonZkEvm, + polygon_zk_evm_testnet: polygonZkEvmTestnet, base, - baseGoerli: base_goerli, + base_goerli: baseGoerli, klaytn, }), [ @@ -128,10 +130,10 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => { internetComputer, telosEvm, coreum, - polygon_zk_evm, - polygon_zk_evm_testnet, + polygonZkEvm, + polygonZkEvmTestnet, base, - base_goerli, + baseGoerli, klaytn, ], ); diff --git a/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx b/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx index 98b156afedc6..8298255148a5 100644 --- a/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx +++ b/apps/ledger-live-mobile/src/screens/AddAccounts/01-SelectCrypto.tsx @@ -80,14 +80,16 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) { const internetComputer = useFeature("currencyInternetComputer"); const telosEvm = useFeature("currencyTelosEvm"); const coreum = useFeature("currencyCoreum"); - const polygon_zk_evm = useFeature("currencyPolygonZkEvm"); - const polygon_zk_evm_testnet = useFeature("currencyPolygonZkEvmTestnet"); + const polygonZkEvm = useFeature("currencyPolygonZkEvm"); + const polygonZkEvmTestnet = useFeature("currencyPolygonZkEvmTestnet"); const base = useFeature("currencyBase"); - const base_goerli = useFeature("currencyBaseGoerli"); + const baseGoerli = useFeature("currencyBaseGoerli"); const klaytn = useFeature("currencyKlaytn"); const featureFlaggedCurrencies = useMemo( () => ({ + // Keys in this list must match an existing currency.id + // Pay attention to the case! axelar, stargaze, umee, @@ -116,10 +118,10 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) { internet_computer: internetComputer, telos: telosEvm, coreum, - polygonZkEvm: polygon_zk_evm, - polygonZkEvmTestnet: polygon_zk_evm_testnet, + polygon_zk_evm: polygonZkEvm, + polygon_zk_evm_testnet: polygonZkEvmTestnet, base, - baseGoerli: base_goerli, + base_goerli: baseGoerli, klaytn, }), [ @@ -151,10 +153,10 @@ export default function AddAccountsSelectCrypto({ navigation, route }: Props) { internetComputer, telosEvm, coreum, - polygon_zk_evm, - polygon_zk_evm_testnet, + polygonZkEvm, + polygonZkEvmTestnet, base, - base_goerli, + baseGoerli, klaytn, ], );