homeflowjs 0.9.15 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/actions/user.actions.js
CHANGED
|
@@ -94,6 +94,15 @@ export const createUser = (payload) => (dispatch, getState) => {
|
|
|
94
94
|
|
|
95
95
|
Homeflow.kickEvent('user_signed_up');
|
|
96
96
|
|
|
97
|
+
const event = new CustomEvent('formSubmission', {
|
|
98
|
+
detail: {
|
|
99
|
+
name: 'user signed up',
|
|
100
|
+
payload,
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
window.dispatchEvent(event);
|
|
105
|
+
|
|
97
106
|
return Promise.all(promises);
|
|
98
107
|
})
|
|
99
108
|
.then(() => dispatch(fetchUser()));
|
|
@@ -145,6 +145,15 @@ class InstantValuation extends Component {
|
|
|
145
145
|
this.getRecentSales()
|
|
146
146
|
.then((recentSalesJson) => {
|
|
147
147
|
this.setState({ valuation: json, recentSales: recentSalesJson.recent_sales });
|
|
148
|
+
|
|
149
|
+
const event = new CustomEvent('formSubmission', {
|
|
150
|
+
detail: {
|
|
151
|
+
name: 'valuation successful',
|
|
152
|
+
payload: params,
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
window.dispatchEvent(event);
|
|
148
157
|
});
|
|
149
158
|
});
|
|
150
159
|
}
|