✨ Display & Delete in love list
This commit is contained in:
1 parent
b702bc629c
commit
1077400260
23 files changed
+644
-523
No files matched your search
@@ -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