Skip to content

Commit

Permalink
Merge pull request #40 from Team-B1ND/hotfix/#39
Browse files Browse the repository at this point in the history
[Hotfix] ν”„λ‘œν•„ μˆ˜μ • 였λ₯˜ ν•΄κ²° (#39)
  • Loading branch information
s1hyun2 authored Nov 21, 2024
2 parents 2f42943 + 0f467e3 commit b3f4fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeEvent, useEffect, useState } from 'react';
import { useRecoilState } from 'recoil';
import { useRecoilState, useSetRecoilState } from 'recoil';
import * as S from './style';
import { BiPlus } from 'react-icons/bi';
import DODAM_DEFAULT_PROFILE from '../../../../../images/default_profile.png';
Expand All @@ -15,7 +15,7 @@ import patternCheck from '../../../../../util/patternCheck';
import { B1ndToast } from '@b1nd/b1nd-toastify';

const MyInfoModifyModal = () => {
const [isOpenMyInfoModifyModal, setIsOpenMyInfoModifyModal] = useRecoilState(MyInfoModifyModalState);
const setIsOpenMyInfoModifyModal = useSetRecoilState(MyInfoModifyModalState);

const { isLoading } = useMyGradeInfo();
const [tempProfileInfo, setTempProfileInfo] = useRecoilState(profileInfo);
Expand Down Expand Up @@ -166,7 +166,7 @@ const MyInfoModifyModal = () => {

<S.PictureBecomeBasicImageBtn
onClick={() => {
setImageSrc('');
setImageSrc(null);
}}
>
κΈ°λ³Έ ν”„λ‘œν•„λ‘œ λ³€κ²½
Expand Down
2 changes: 1 addition & 1 deletion src/repository/mainProfile/fileUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { fileUpload } from "../../types/fileUpload/fileUpload.type";

class FileUpload {
public async postFileUpload(formData: FormData | ""): Promise<fileUpload> {
const { data } = await customAxios.post("/upload", formData === undefined ? formData : "");
const { data } = await customAxios.post("/upload", formData || null);
return data;
}
}
Expand Down

0 comments on commit b3f4fa0

Please sign in to comment.