최소 경매시간 및 메시지 오타 수정

This commit is contained in:
2025-02-13 15:33:16 +09:00
parent 95d5cad3bc
commit d0a3b880df
2 changed files with 14 additions and 8 deletions

View File

@@ -174,19 +174,24 @@ const LandAuctionModal = ({ modalType, detailView, handleDetailView, content, se
const minAllowedTime = new Date(new Date().getTime() + 5 * 60000);
if (isView('recv') && resultData.resv_start_dt < minAllowedTime) {
setAlertMsg(t('LAND_AUCTION_MADEL_RESV_START_WARNING'));
setAlertMsg(t('LAND_AUCTION_MODEL_RESV_START_WARNING'));
return;
}
if (resultData.auction_start_dt < minAllowedTime) {
setAlertMsg(t('LAND_AUCTION_MADEL_AUCTION_START_WARNING'));
setAlertMsg(t('LAND_AUCTION_MODEL_AUCTION_START_WARNING'));
return;
}
if(resultData.resv_start_dt >= resultData.auction_start_dt || resultData.resv_start_dt >= resultData.auction_end_dt) {
setAlertMsg(t('LAND_AUCTION_MADEL_AUCTION_DIFF_RESERVATION'))
setAlertMsg(t('LAND_AUCTION_MODEL_AUCTION_DIFF_RESERVATION'))
return;
}
if(resultData.auction_start_dt >= resultData.auction_end_dt) {
setAlertMsg(t('LAND_AUCTION_MADEL_AUCTION_DIFF_AUCTION'))
setAlertMsg(t('LAND_AUCTION_MODEL_AUCTION_DIFF_AUCTION'))
return;
}
const diffAuctionTime = resultData.auction_end_dt - resultData.auction_start_dt;
if((diffAuctionTime / 60000) < 15){
setAlertMsg(t('LAND_AUCTION_MODEL_MIN_TIME_WARNING'))
return;
}