Display & Delete in love list

This commit is contained in:
2024-10-11 19:08:52 +02:00
parent b702bc629c
commit 1077400260
23 changed files with 644 additions and 523 deletions
+10 -2
View File
@@ -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;
}