diff --git a/client/package-lock.json b/client/package-lock.json index 4ffbd2e3..2f3f96ec 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,6 +1,6 @@ { "name": "tdm-calculator-client", - "version": "0.2.23", + "version": "0.2.24", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/client/package.json b/client/package.json index 419cced6..fd7bccf3 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "tdm-calculator-client", - "version": "0.2.23", + "version": "0.2.24", "private": true, "proxy": "http://localhost:5000", "scripts": { diff --git a/client/src/components/ProjectWizard/CalculationWizardRoutes.js b/client/src/components/ProjectWizard/CalculationWizardRoutes.js index 38913dca..4ad6ddc7 100644 --- a/client/src/components/ProjectWizard/CalculationWizardRoutes.js +++ b/client/src/components/ProjectWizard/CalculationWizardRoutes.js @@ -60,9 +60,6 @@ const CalculationWizardRoutes = ({ diff --git a/client/src/components/ProjectWizard/RuleStrategy/RuleStrategyLabel.js b/client/src/components/ProjectWizard/RuleStrategy/RuleStrategyLabel.js index 1498e838..43b7c0d5 100644 --- a/client/src/components/ProjectWizard/RuleStrategy/RuleStrategyLabel.js +++ b/client/src/components/ProjectWizard/RuleStrategy/RuleStrategyLabel.js @@ -15,7 +15,7 @@ const RuleStrategyLabel = ({ diff --git a/client/src/components/ProjectWizard/WizardPages/ProjectPackages.js b/client/src/components/ProjectWizard/WizardPages/ProjectPackages.js index 007bd2d2..b4246e37 100644 --- a/client/src/components/ProjectWizard/WizardPages/ProjectPackages.js +++ b/client/src/components/ProjectWizard/WizardPages/ProjectPackages.js @@ -308,9 +308,8 @@ function ProjectPackages(props) { ); } + ProjectPackages.propTypes = { - projectLevel: PropTypes.number.isRequired, - rules: PropTypes.array.isRequired, allowResidentialPackage: PropTypes.bool.isRequired, allowEmploymentPackage: PropTypes.bool.isRequired }; diff --git a/client/src/components/ToolTip/ToolTipLabel.js b/client/src/components/ToolTip/ToolTipLabel.js index 398e3d3d..eb0dcf39 100644 --- a/client/src/components/ToolTip/ToolTipLabel.js +++ b/client/src/components/ToolTip/ToolTipLabel.js @@ -49,10 +49,10 @@ const ToolTipLabel = ({ const requiredStyle = requiredInput && classes.requiredInputLabel; const disabledStyle = disabledInput && classes.disabledInputLabel; - if (code.includes("UNITS_HABIT")) { + if (code && code.startsWith("UNITS_HABIT")) { return (