fix: edit member

This commit is contained in:
amel
2024-08-29 11:12:57 +08:00
parent 1780f8a19b
commit ecac5b20ea
3 changed files with 33 additions and 30 deletions

View File

@@ -53,10 +53,6 @@ export const funEditStatusMember = async (path: string, data: IStatusmember) =>
export const funEditMember = async (path: string, data: IEditDataMember) => {
if (data.name.length < 3)
return { success: false, message: 'Minimal 3 karakter' }
const response = await fetch(`/api/user/${path}`, {
method: "PUT",
headers: {