Skip to content

Commit 6d27d6b

Browse files
Fix contractor on socket form
1 parent dc212c2 commit 6d27d6b

File tree

3 files changed

+1129
-7
lines changed

3 files changed

+1129
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"engines": {
2626
"node": "8.x",
2727
"npm": "5.x",
28-
"yarn": "1.3.x"
28+
"yarn": "1.10.x"
2929
},
3030
"jest": {
3131
"verbose": true,

src/components/shared/EnquiryForm.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class EnquiryForm extends Component {
4444
return
4545
}
4646

47-
const enquiry_form_info = this.props.root.get_enquiry()
48-
const data = Object.assign(enquiry_form_info.hidden, this.state.enquiry_data)
47+
const data = Object.assign({}, this.state.enquiry_data)
4948
data.upstream_http_referrer = document.referrer
5049
if (this.props.contractor) {
5150
data.contractor = this.props.contractor.id

0 commit comments

Comments
 (0)