Skip to content

Commit 74a9050

Browse files
committed
use multichain aware selector
1 parent d0b1652 commit 74a9050

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ui/pages/bridge/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ import {
1919
ButtonIconSize,
2020
IconName,
2121
} from '../../components/component-library';
22-
import {
23-
getSelectedNetworkClientId,
24-
getCurrentChainId,
25-
} from '../../../shared/modules/selectors/networks';
22+
import { getSelectedNetworkClientId } from '../../../shared/modules/selectors/networks';
23+
import { getMultichainCurrentChainId } from '../../selectors/multichain';
2624
import useBridging from '../../hooks/bridge/useBridging';
2725
import {
2826
Content,
@@ -64,7 +62,7 @@ const CrossChainSwap = () => {
6462
};
6563

6664
const isSwap = useIsMultichainSwap();
67-
const chainId = useSelector(getCurrentChainId);
65+
const chainId = useSelector(getMultichainCurrentChainId);
6866
const isUnifiedUIEnabled = useSelector((state: BridgeAppState) =>
6967
getIsUnifiedUIEnabled(state, chainId),
7068
);

0 commit comments

Comments
 (0)