Skip to content

Commit

Permalink
Merge pull request #149 from Team-JustPay/feature/#125
Browse files Browse the repository at this point in the history
feat: 서버 데이터 undefined에러 수정
  • Loading branch information
NamjunKim12 authored Jan 12, 2023
2 parents e569b71 + 9c65f95 commit 3accc66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/offer/buy/common/DeliveryOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export default function DeliveryOption({

const Icon = () => {
switch (name) {
case '반값택배':
case 'GS택배':
return <Gspost />;
case '끼리택배':
case 'CU택배':
return <Cupost />;
case '일반우편':
return <Mail />;
Expand All @@ -68,7 +68,7 @@ export default function DeliveryOption({
<StyledSubtitle>|&nbsp;{`${price.toLocaleString()}원`}</StyledSubtitle>
</StyledTitleContainer>
<StyledDescriptionContainer>
{contents.map((content) => (
{contents?.map((content) => (
<StyledContent>· &nbsp;{content}</StyledContent>
))}
</StyledDescriptionContainer>
Expand Down
4 changes: 2 additions & 2 deletions pages/offer/buy/confirm/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export default function confirm() {
if (postData.shippingOption !== undefined) {
}
switch (postData.shippingOption) {
case '반값택배':
case 'GS택배':
return 1600;
case '끼리택배':
case 'CU택배':
return 1600;
case '일반우편':
return 600;
Expand Down

0 comments on commit 3accc66

Please sign in to comment.