✨ Display & Delete in love list
This commit is contained in:
@@ -20,10 +20,18 @@ export const useActions = ({
|
||||
setPasswordMessage(null);
|
||||
};
|
||||
|
||||
const updateUsername = async (value: string) => {
|
||||
const updateUsername = async (ev: FormEvent<HTMLFormElement>) => {
|
||||
resetMessage();
|
||||
|
||||
if (value == userData.username) {
|
||||
if (!ev.currentTarget.reportValidity()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const formData = new FormData(ev.currentTarget);
|
||||
|
||||
const value = formData.get('username').toString();
|
||||
|
||||
if (value == userData.username || value.length <= 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user