Update packages/web/components/EditProfileModal.tsx

Co-authored-by: δυς <dys@dhappy.org>
This commit is contained in:
Dan OneTree
2022-10-04 21:21:17 +05:30
parent bfd28ac5ce
commit a6be333f79

View File

@@ -269,7 +269,7 @@ export const EditProfileModal: React.FC<ProfileEditorProps> = ({
const formData = new FormData();
const files: Record<string, File> = {};
const images: Record<string, ImageSources | null> = {};
const images: Record<string, Maybe<ImageSources>> = {};
const values = { ...inputs };
Object.keys(Images).forEach((hasuraId) => {
const key = hasuraId as keyof typeof Images;