Skip to content

Commit

Permalink
chore: don't need to check bridge enabled as we check already when ro…
Browse files Browse the repository at this point in the history
…uting to bridge page
  • Loading branch information
infiniteflower committed Oct 16, 2024
1 parent d6af9ef commit 446d979
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ui/ducks/bridge/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import { MetaMaskReduxDispatch, MetaMaskReduxState } from '../../store/store';
import { DEFAULT_ROUTE } from '../../helpers/constants/routes';
import {
checkNetworkAndAccountSupports1559,
getIsBridgeChain,
getIsBridgeEnabled,
getNetworkConfigurationsByChainId,
getSelectedNetworkClientId,
} from '../../selectors';
Expand Down Expand Up @@ -206,14 +204,6 @@ export const submitBridgeTransaction = (
getState: () => MetaMaskReduxState & BridgeAppState,
) => {
const state = getState();
const isBridgeEnabled = getIsBridgeEnabled(state);
const isBridgeChain = getIsBridgeChain(state);

if (!(isBridgeEnabled && isBridgeChain)) {
// TODO do we want to do something here?
return;
}

const quoteMetas = getQuotes(state);
const quoteMeta = quoteMetas[0];

Expand Down

0 comments on commit 446d979

Please sign in to comment.