From 948446fbeaffdcd02c9730947407ff438770a957 Mon Sep 17 00:00:00 2001 From: dddddanica Date: Sat, 30 Nov 2024 01:22:15 +0000 Subject: [PATCH] feat(27256): refactor types for `_getConfigForRemoteFeatureFlagRequest` --- app/scripts/metamask-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 8559b5f83436..2d2a0bd298e5 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -7422,11 +7422,11 @@ export default class MetamaskController extends EventEmitter { _getConfigForRemoteFeatureFlagRequest() { const distribution = buildTypeMappingForRemoteFeatureFlag[process.env.METAMASK_BUILD_TYPE] || - 'main'; + DistributionType.main; const environment = environmentMappingForRemoteFeatureFlag[ process.env.METAMASK_ENVIRONMENT - ] || 'dev'; + ] || EnvironmentType.Development; return { distribution, environment }; }