Skip to content

Commit d3f95d6

Browse files
Merge pull request #24 from tutorcruncher/fix-con-enq
Fix contractor on socket form
2 parents dc212c2 + ad9c08d commit d3f95d6

File tree

4 files changed

+1133
-7
lines changed

4 files changed

+1133
-7
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ cache:
88
directories:
99
- node_modules
1010

11+
before_install:
12+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.0
13+
- export PATH="$HOME/.yarn/bin:$PATH"
14+
1115
install:
1216
- yarn
1317

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)