Fixed avatar image not displaying

This commit is contained in:
Daniel Cojocea committed 2024-07-08 16:06:12 -04:00
1 parent 7f7226d6e5
commit 31e4c7b110
3 files changed
+7 -24

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ export const update = createAsyncThunk(
await new Promise((resolve) => setTimeout(resolve, 1500));
const fd = new FormData();
const imageResult = await axios.get(form.file);
const imageResult = await axios.get(form.file, { responseType: "blob" });
fd.append("firstname", form.firstname);
fd.append("lastname", form.lastname);
fd.append("profileImage", imageResult.data);