diff --git a/src/components/modal/BattleEventModal.js b/src/components/modal/BattleEventModal.js index 4eb697c..0a68996 100644 --- a/src/components/modal/BattleEventModal.js +++ b/src/components/modal/BattleEventModal.js @@ -210,11 +210,18 @@ const BattleEventModal = ({ modalType, detailView, handleDetailView, content, se return; } + //최소 진행시간 if(resultData.event_operation_time < 10){ showToast('BATTLE_EVENT_MODAL_OPERATION_TIME_MIN_CHECK_WARNING', {type: alertTypes.warning}); return; } + //최대 진행시간 + if(resultData.repeat_type !== 'NONE' && resultData.event_operation_time > 1400){ + showToast('BATTLE_EVENT_MODAL_OPERATION_TIME_MAX_CHECK_WARNING', {type: alertTypes.warning}); + return; + } + // if(resultData.round_time === 0){ // const config = configData.find(data => data.id === resultData.config_id); // setResultData({ ...resultData, round_time: config.round_time });