We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f32676 commit 344eb0dCopy full SHA for 344eb0d
1 file changed
apps/frontend/src/app/3_organisms/ERC20BridgeDialog/ERC20BridgeDialog.tsx
@@ -45,7 +45,10 @@ export const ERC20BridgeDialog: React.FC<ERC20BridgeDialogProps> = ({
45
const { account } = useAccount();
46
const { isMobile } = useIsMobile();
47
const { currentChainId, setCurrentChainId } = useChainStore();
48
- const isWrongChain = RSK_CHAIN_ID !== currentChainId;
+ const isWrongChain = useMemo(
49
+ () => RSK_CHAIN_ID !== currentChainId,
50
+ [currentChainId],
51
+ );
52
53
const handleClose = useCallback(() => {
54
if (isWrongChain) {
0 commit comments