diff --git a/app/scripts/lib/transaction/metrics.ts b/app/scripts/lib/transaction/metrics.ts index 1e0e26dc1c20..3cdc14619b0d 100644 --- a/app/scripts/lib/transaction/metrics.ts +++ b/app/scripts/lib/transaction/metrics.ts @@ -998,7 +998,7 @@ async function buildEventFragmentProperties({ } const isRedesignedConfirmationsDeveloperSettingEnabled = transactionMetricsRequest.getIsRedesignedConfirmationsDeveloperEnabled() || - Boolean(process.env.ENABLE_CONFIRMATION_REDESIGN); + process.env.ENABLE_CONFIRMATION_REDESIGN === 'true'; const isRedesignedTransactionsUserSettingEnabled = transactionMetricsRequest.getRedesignedTransactionsEnabled(); diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 830b66d38a06..a275c4d17e5a 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -6529,10 +6529,12 @@ export default class MetamaskController extends EventEmitter { ); }, getRedesignedConfirmationsEnabled: () => { - return this.preferencesController.getRedesignedConfirmationsEnabled; + return this.preferencesController.state.preferences + .redesignedConfirmationsEnabled; }, getRedesignedTransactionsEnabled: () => { - return this.preferencesController.getRedesignedTransactionsEnabled; + return this.preferencesController.state.preferences + .redesignedTransactionsEnabled; }, getMethodData: (data) => { if (!data) {