feat: launch hotjar recommendations survey [VAN-1108] (#31118)
This commit is contained in:
committed by
GitHub
parent
5cb6e9859a
commit
0509bb3acd
@@ -41,16 +41,16 @@ class RecommendationsPanel extends React.Component {
|
||||
if (response.status === 400) {
|
||||
return this.props.generalRecommendations;
|
||||
} else {
|
||||
if (window.hj) {
|
||||
window.hj('event', 'van_1046_show_recommendations_survey');
|
||||
}
|
||||
return response.json();
|
||||
|
||||
}
|
||||
}).catch(() => {
|
||||
return this.props.generalRecommendations;
|
||||
});
|
||||
|
||||
if (window.hj && coursesRecommendationData.courses.length) {
|
||||
window.hj('event', 'van_1108_show_recommendations_survey');
|
||||
}
|
||||
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
coursesList: coursesRecommendationData.courses,
|
||||
|
||||
Reference in New Issue
Block a user