Skip to content

Commit

Permalink
Merge pull request #13 from themoment-team/HotFix/buildError
Browse files Browse the repository at this point in the history
HotFix Build Error
  • Loading branch information
gaoooon authored May 21, 2024
2 parents ff27d0c + e28ee59 commit 07635f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
12 changes: 6 additions & 6 deletions src/components/CardModal/BusinessCardModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const CardModal: React.FC<Props> = ({
const [isPrinting, setIsPrinting] = useState(false);

const commonProps = {
name: userInfo?.name,
major: userInfo?.major,
phoneNumber: userInfo ? formatPhoneNumber(userInfo.phoneNumber) : '',
email: userInfo?.email,
mbti: isValidMBTI(userInfo?.mbti) ? userInfo.mbti : undefined,
instagram: userInfo.instagram,
name: userInfo!.name,
major: userInfo?.major || '',
phoneNumber: formatPhoneNumber(userInfo!.phoneNumber),
email: userInfo!.email,
mbti: userInfo && isValidMBTI(userInfo.mbti) ? userInfo.mbti : undefined,
instagram: userInfo?.instagram || '',
imageUrl: imageUrl,
};

Expand Down
15 changes: 7 additions & 8 deletions src/pageContainers/SelectPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ const SelectPage: React.FC<Props> = ({
};

const commonProps = {
name: userInfo.name,
major: userInfo.major,
phoneNumber: formatPhoneNumber(userInfo.phoneNumber),
email: userInfo.email,
mbti: isValidMBTI(userInfo?.mbti) ? userInfo.mbti : undefined,
instagram: userInfo.instagram,
imageUrl:
selectedButton === SelectedType.YES ? convertedImageUrl! : imageUrl,
name: userInfo!.name,
major: userInfo?.major || '',
phoneNumber: formatPhoneNumber(userInfo!.phoneNumber),
email: userInfo!.email,
mbti: userInfo && isValidMBTI(userInfo.mbti) ? userInfo.mbti : undefined,
instagram: userInfo?.instagram || '',
imageUrl: imageUrl,
};

return (
Expand Down

0 comments on commit 07635f2

Please sign in to comment.