feat: launch hotjar recommendations survey [VAN-1108] (#31118)

This commit is contained in:
Syed Sajjad Hussain Shah
2022-10-06 16:08:32 +05:00
committed by GitHub
parent 5cb6e9859a
commit 0509bb3acd

View File

@@ -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,