Skip to content

Commit 11928e5

Browse files
committed
fix enquiry post
1 parent 5abf8ad commit 11928e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/shared/EnquiryForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class EnquiryForm extends Component {
5151
data.contractor = this.props.contractor.id
5252
}
5353

54-
const r = await this.props.root.requests.post('enquiry', this.state.enquiry_data, [201, 400])
54+
const r = await this.props.root.requests.post('enquiry', this.state.enquiry_data, {expected_statuses: [201, 400]})
5555
if (r.status === 201) {
5656
this.props.root.ga_event('enquiry-form', 'submitted', this.props.mode)
5757
this.setState({submitted: true})

0 commit comments

Comments
 (0)