diff --git a/web-frontend/src/custom/useMNS.tsx b/web-frontend/src/custom/useMNS.tsx index 1f31aa519..d51a3a483 100644 --- a/web-frontend/src/custom/useMNS.tsx +++ b/web-frontend/src/custom/useMNS.tsx @@ -63,9 +63,9 @@ export function useMNS() { setTargetMnsAddress(''); } - function resetDomainList() { + const resetDomainList = useCallback(() => { setDomainNameList([]); - } + }, []); return { domainNameList,