diff --git a/src/components/InsureeForm.js b/src/components/InsureeForm.js index a74abb2..d045c0b 100644 --- a/src/components/InsureeForm.js +++ b/src/components/InsureeForm.js @@ -92,6 +92,11 @@ class InsureeForm extends Component { }; }); } + + if (!this.state.insuree.family && this.props.family) { + const updatedInsuree = { ...this.state.insuree, family: this.props.family }; + this.setState({ insuree: updatedInsuree }); + } } componentWillUnmount = () => {