From e0fb5f3af4de1f0c321cc24c85a50d7d11a97933 Mon Sep 17 00:00:00 2001 From: furaha707 Date: Sat, 3 Feb 2024 00:12:50 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=97=90=EB=9F=AC=EB=AC=B8=EA=B5=AC=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/priceArea/index.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/priceArea/index.tsx b/src/components/priceArea/index.tsx index 85f1dd1b..d5db562d 100644 --- a/src/components/priceArea/index.tsx +++ b/src/components/priceArea/index.tsx @@ -56,10 +56,20 @@ const PriceArea = ({ }; const getErrorMessage = () => { - if (0 < price && price <= purchasePrice - cancelFee) { - return 지금 야놀자에서 취소하는 것보다 손해보는 가격이에요!; + if (policyNumber === "YNBD_1" || policyNumber === "YNBD_2") { + if (0 < price && price <= purchasePrice - cancelFee) { + return ( + 지금 야놀자에서 취소하는 것보다 손해보는 가격이에요! + ); + } + return; + } else if (policyNumber === "YNBD_3") { + if (0 < price && price < purchasePrice) { + return ( + 지금 야놀자에서 취소하는 것보다 손해보는 가격이에요! + ); + } } - return; }; const getCommandMessage = () => {