Skip to content

Commit

Permalink
removed console statements
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Sep 4, 2024
1 parent aa4c368 commit 5ce582a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export const NetworkListMenu = ({ onClose }) => {
const chains = useSelector(getPermittedChainsByOrigin);
const permittedChains = Object.values(chains);
const flattenedPermittedChains = permittedChains.flat();
console.log(permittedChains, 'hhh');
const dispatch = useDispatch();
const history = useHistory();
const trackEvent = useContext(MetaMetricsContext);
Expand Down Expand Up @@ -309,15 +308,10 @@ export const NetworkListMenu = ({ onClose }) => {
selected={isCurrentNetwork && !focusSearch}
focus={isCurrentNetwork && !focusSearch}
onClick={() => {
console.log(permittedChains, network.chainId);
dispatch(toggleNetworkMenu());
dispatch(setActiveNetwork(network.providerType || network.id));
grantPermittedChain(selectedTabOrigin, network.chainId);
if (!flattenedPermittedChains.includes(network.chainId)) {
console.log(
'hello hi bye',
permittedChains.includes(network.chainId),
);
dispatch(showPermittedNetworkToast());
}
if (
Expand Down
1 change: 1 addition & 0 deletions ui/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1826,6 +1826,7 @@ export function removePermittedAccount(
origin: string,
address: string,
): ThunkAction<void, MetaMaskReduxState, unknown, AnyAction> {
console.log("removed is done")
return async (dispatch: MetaMaskReduxDispatch) => {
await new Promise<void>((resolve, reject) => {
callBackgroundMethod(
Expand Down

0 comments on commit 5ce582a

Please sign in to comment.