Untitled
const integarVal = parseInt(e.target.value); if (isValidInput(integarVal)) { mutations.setDaysValidation({ daysAfter: true }); onDataChanged({ afterDeadline: integarVal || undefined }); } else { mutations.setDaysValidation({ daysAfter: false }); }