Skip to content

Commit

Permalink
fix: Make postcode lookup construct with values from parent if constr…
Browse files Browse the repository at this point in the history
…ucted with validation rules
  • Loading branch information
adamclark-dev committed Feb 24, 2019
1 parent 6988a3d commit eeb5c15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/PostcodeLookup/PostcodeLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class PostcodeLookup extends Component {
/**
* AddressLookup constructor
*/
constructor() {
super();
constructor(props) {
super(props);
this.state = {
addressDropdownList: [],
countryDropdownList: [],
Expand All @@ -22,7 +22,7 @@ class PostcodeLookup extends Component {
isAddressButtonHidden: false,
isAddressSelectHidden: true,
isAddressFieldsHidden: true,
validation: {
validation: props.valuesFromParent !== null && typeof props.valuesFromParent !== 'undefined' ? props.valuesFromParent : {
postcode: {
valid: null,
message: '',
Expand Down

0 comments on commit eeb5c15

Please sign in to comment.