Skip to content

Commit

Permalink
fix for multiple recaptchas
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jan 26, 2018
1 parent 3fbf043 commit 374e10c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
REACT_APP_SOCKET_API_URL='https://socket.tutorcruncher.com'
PUBLIC_URL='/'
REACT_APP_GRECAPTCHA_KEY='6LdyXRgUAAAAADUNhMVKJDXiRr6DUN8TGOgllqbt'
REACT_APP_RELEASE='-'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tutorcruncher-socket",
"version": "1.0.3",
"version": "1.0.4",
"description": "TutorCruncher socket",
"author": "Samuel Colvin <[email protected]>",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/EnquiryForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class EnquiryForm extends Component {
enquiry_data: {},
}
this.mode = this.props.mode || 'vanilla'
this.grecaptcha_container_id = 'grecaptcha_' + this.props.root.random_id
this.grecaptcha_container_id = 'grecaptcha_' + this.props.config.random_id
this.render_grecaptcha = this.render_grecaptcha.bind(this)
this.submit = this.submit.bind(this)
this.set_enquiry_data = this.set_enquiry_data.bind(this)
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Cross = () => (
// https://github.com/tutorcruncher/TutorCruncher-branding/blob/master/dino-flat.svg
export const Footer = () => (
<div className="tcs-footer">
<span>v{process.env.REACT_APP_RELEASE ? process.env.REACT_APP_RELEASE : '-'}</span>
<span>v{process.env.REACT_APP_RELEASE}</span>
<a href="https://tutorcruncher.com" target="blank" className="tcs-footer">
<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(524,-293)">
Expand Down

0 comments on commit 374e10c

Please sign in to comment.