Skip to content

Commit 1edb4e4

Browse files
author
Matthew Vita
committed
fix for contact relation store issue
1 parent 60b5032 commit 1edb4e4

File tree

1 file changed

+7
-7
lines changed
  • samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/Contact

1 file changed

+7
-7
lines changed

samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/Contact/ContactComponent.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ class Contact extends Component {
6060
this.props.updateContactData(formValues)
6161
this.setState({ showForm: false })
6262
}
63-
63+
6464
sanitizeToJustNumbers(value) {
6565
if (!value) {
6666
return value
6767
}
6868

6969
return value.replace(/[^0-9.]/g, '')
7070
}
71-
71+
7272
setPropsToLocalState() {
7373
const keys = ['id','name', 'relation', 'address', 'phone', 'city', 'postal', 'state', 'country', 'email']
7474

@@ -82,7 +82,7 @@ class Contact extends Component {
8282
} else {
8383
value = this.props.contact[keyName]
8484
}
85-
85+
8686
this.setState({
8787
[keyName]: value
8888
})
@@ -125,7 +125,7 @@ class Contact extends Component {
125125
)
126126
} else if (this.props.contact && this.state.showForm === true) {
127127
return (
128-
128+
129129
<Formsy.Form onValidSubmit={this.handleSubmit.bind(this)}
130130
name='contactInfoForm'
131131
className='container contact-info-form'
@@ -151,8 +151,8 @@ class Contact extends Component {
151151
<td>
152152
<FormsyInput value={this.state.relation}
153153
onChange={this.handleInputChange}
154-
name='relationship'
155-
label='Relationship'
154+
name='relation'
155+
label='Relation'
156156
validations={{
157157
maxLength: 25,
158158
minLength: 1
@@ -304,7 +304,7 @@ class Contact extends Component {
304304
<button type='button' className='btn btn-default btn-sm' onClick={this.handleCancel}>CANCEL</button>
305305

306306
</Formsy.Form>
307-
307+
308308
)
309309
}
310310
}

0 commit comments

Comments
 (0)