Skip to content

Commit a531752

Browse files
committed
addressed PR comments
1 parent 5b7a62d commit a531752

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/messenger-widget/src/components/ConfigureProfile/context/ConfigureProfileContext.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const ConfigureProfileContextProvider = (props: { children?: any }) => {
4747
const { disabledOptions } = useContext(ModalContext);
4848

4949
// DM3 Name service selected
50+
// By default, first DM3 name is set from the dropdown which is not disabled
5051
const [dm3NameServiceSelected, setDm3NameServiceSelected] =
5152
useState<string>(
5253
dm3NamingServices.filter(
@@ -58,6 +59,7 @@ export const ConfigureProfileContextProvider = (props: { children?: any }) => {
5859
);
5960

6061
// ENS Name service selected
62+
// By default, first ENS name is set from the dropdown which is not disabled
6163
const [namingServiceSelected, setNamingServiceSelected] = useState<string>(
6264
namingServices.filter(
6365
(n) =>
@@ -67,13 +69,6 @@ export const ConfigureProfileContextProvider = (props: { children?: any }) => {
6769
)[0]?.name,
6870
);
6971

70-
useEffect(() => {
71-
console.log(
72-
'namingServiceSelectednamingServiceSelected ::',
73-
namingServiceSelected,
74-
);
75-
}, [namingServiceSelected]);
76-
7772
const { displayName } = useContext(AuthContext);
7873
const { dm3Configuration } = useContext(DM3ConfigurationContext);
7974

0 commit comments

Comments
 (0)