We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f5842 commit ab67320Copy full SHA for ab67320
src/Webform/index.jsx
@@ -172,10 +172,11 @@ class Webform extends Component {
172
));
173
}
174
175
- converted() {
+ converted(converted) {
176
this.props.onSubmitSuccess({
177
webform: this,
178
response: this.response,
179
+ converted,
180
}); // Trigger onSubmitSuccess hook.
181
182
@@ -287,8 +288,8 @@ class Webform extends Component {
287
288
{this.state.status === Webform.formStates.SENT && (
289
<Script
290
url='//cdn-static.formisimo.com/tracking/js/conversion.js'
- onLoad={this.converted}
291
- onError={this.converted}
+ onLoad={() => this.converted(true)}
292
+ onError={() => this.converted(false)}
293
/>
294
)}
295
</div>
0 commit comments