diff --git a/src/components/order/orderDetail/OrderDetailComponent.vue b/src/components/order/orderDetail/OrderDetailComponent.vue index f3d06ad2..debb7f14 100644 --- a/src/components/order/orderDetail/OrderDetailComponent.vue +++ b/src/components/order/orderDetail/OrderDetailComponent.vue @@ -134,6 +134,11 @@ const cancel = async (orderDetailNo: string) => { return } } + +const formatPrice = (price: number | null | undefined) => { + if (!price) return '0원' + return `${new Intl.NumberFormat('ko-KR').format(price)}원` +}