Skip to content

Commit

Permalink
fix: vercel 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
han-kimm committed Jan 4, 2024
1 parent a682c7d commit 0741f7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/mypage/components/SettingProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ interface ProfileProps {

const SettingProfile = ({ userData }: ProfileProps) => {
const router = useRouter();
const [preview, setPreview] = useState<string | null | undefined>(userData.profileImageUrl);
const [prevNickname, setPrevNickname] = useState(userData.nickname);
const [preview, setPreview] = useState<string | null | undefined>(userData?.profileImageUrl);
const [prevNickname, setPrevNickname] = useState(userData?.nickname);

const [isSuccessModalOpen, setIsSuccessModalOpen] = useState(false);

Expand All @@ -36,7 +36,7 @@ const SettingProfile = ({ userData }: ProfileProps) => {
id: "nickname",
type: "text",
name: "nickname",
initialvalue: userData.nickname,
initialvalue: userData?.nickname,
placeholder: "닉네임을 입력해 주세요.",
},
labelConfig: { labelName: "닉네임" },
Expand Down Expand Up @@ -90,7 +90,7 @@ const SettingProfile = ({ userData }: ProfileProps) => {
<div className={styles.info__nickname}>
<label>
<p>이메일</p>
<input disabled placeholder={userData.email}></input>
<input disabled placeholder={userData?.email}></input>
</label>
<InputWrapper {...wrapper}>
<Input {...input} />
Expand Down

0 comments on commit 0741f7c

Please sign in to comment.