Skip to content

Commit ab67320

Browse files
author
Ian Wensink
committed
fix(formisimo): send conversion successful
1 parent f5f5842 commit ab67320

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Webform/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@ class Webform extends Component {
172172
));
173173
}
174174

175-
converted() {
175+
converted(converted) {
176176
this.props.onSubmitSuccess({
177177
webform: this,
178178
response: this.response,
179+
converted,
179180
}); // Trigger onSubmitSuccess hook.
180181
}
181182

@@ -287,8 +288,8 @@ class Webform extends Component {
287288
{this.state.status === Webform.formStates.SENT && (
288289
<Script
289290
url='//cdn-static.formisimo.com/tracking/js/conversion.js'
290-
onLoad={this.converted}
291-
onError={this.converted}
291+
onLoad={() => this.converted(true)}
292+
onError={() => this.converted(false)}
292293
/>
293294
)}
294295
</div>

0 commit comments

Comments
 (0)