Skip to content

Commit 374e10c

Browse files
committed
fix for multiple recaptchas
1 parent 3fbf043 commit 374e10c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
REACT_APP_SOCKET_API_URL='https://socket.tutorcruncher.com'
22
PUBLIC_URL='/'
33
REACT_APP_GRECAPTCHA_KEY='6LdyXRgUAAAAADUNhMVKJDXiRr6DUN8TGOgllqbt'
4+
REACT_APP_RELEASE='-'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tutorcruncher-socket",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "TutorCruncher socket",
55
"author": "Samuel Colvin <[email protected]>",
66
"private": false,

src/components/shared/EnquiryForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class EnquiryForm extends Component {
1313
enquiry_data: {},
1414
}
1515
this.mode = this.props.mode || 'vanilla'
16-
this.grecaptcha_container_id = 'grecaptcha_' + this.props.root.random_id
16+
this.grecaptcha_container_id = 'grecaptcha_' + this.props.config.random_id
1717
this.render_grecaptcha = this.render_grecaptcha.bind(this)
1818
this.submit = this.submit.bind(this)
1919
this.set_enquiry_data = this.set_enquiry_data.bind(this)

src/components/shared/Tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const Cross = () => (
1515
// https://github.com/tutorcruncher/TutorCruncher-branding/blob/master/dino-flat.svg
1616
export const Footer = () => (
1717
<div className="tcs-footer">
18-
<span>v{process.env.REACT_APP_RELEASE ? process.env.REACT_APP_RELEASE : '-'}</span>
18+
<span>v{process.env.REACT_APP_RELEASE}</span>
1919
<a href="https://tutorcruncher.com" target="blank" className="tcs-footer">
2020
<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">
2121
<g transform="translate(524,-293)">

0 commit comments

Comments
 (0)