File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ui/pages/confirmations/components/confirm/dapp-swap-comparison-banner Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { useDappSwapComparisonInfo } from '../../../hooks/transactions/dapp-swap
3030import { useSwapCheck } from '../../../hooks/transactions/dapp-swap-comparison/useSwapCheck' ;
3131
3232const DAPP_SWAP_COMPARISON_ORIGIN = 'https://app.uniswap.org' ;
33+ const TEST_DAPP_ORIGIN = 'https://metamask.github.io' ;
3334const DAPP_SWAP_THRESHOLD = 0.01 ;
3435
3536type DappSwapUiFlag = {
@@ -256,7 +257,8 @@ export const DappSwapComparisonBanner = () => {
256257
257258 const dappSwapMetricsEnabled =
258259 ( dappSwapMetrics as { enabled : boolean } ) ?. enabled === true &&
259- transactionMeta . origin === DAPP_SWAP_COMPARISON_ORIGIN ;
260+ ( transactionMeta . origin === DAPP_SWAP_COMPARISON_ORIGIN ||
261+ transactionMeta . origin === TEST_DAPP_ORIGIN ) ;
260262
261263 if ( ! dappSwapMetricsEnabled ) {
262264 return null ;
You can’t perform that action at this time.
0 commit comments