bug: members is fixed (#1073)

This commit is contained in:
palash-signoz 2022-05-04 18:05:37 +05:30 committed by GitHub
parent ca4ce0d380
commit 0554ed7ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,14 +29,6 @@ function EditMembersDetails({
const [isLoading, setIsLoading] = useState<boolean>(false); const [isLoading, setIsLoading] = useState<boolean>(false);
const [state, copyToClipboard] = useCopyToClipboard(); const [state, copyToClipboard] = useCopyToClipboard();
useEffect(() => {
return (): void => {
setName('');
setRole('VIEWER');
setEmailAddress('');
};
}, [setEmailAddress, setName, setRole]);
const getPasswordLink = (token: string): string => { const getPasswordLink = (token: string): string => {
return `${window.location.origin}${ROUTES.PASSWORD_RESET}?token=${token}`; return `${window.location.origin}${ROUTES.PASSWORD_RESET}?token=${token}`;
}; };