Added delete image flag to form

This commit is contained in:
Daniel Cojocea committed 2024-07-09 13:02:33 -04:00
1 parent 7deb796fa1
commit 2c2cffcc84
2 files changed
+14 -1

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ export const update = createAsyncThunk(
fd.append("firstname", form.firstname);
fd.append("lastname", form.lastname);
fd.append("profileImage", imageResult.data);
fd.append("deleteProfileImage", form.deleteProfileImage);
const res = await axios.post(`${BASE_URL}/auth/user/${user._id}`, fd, {
headers: {