← All changes
|
src/Recommendations/components/RecommendationCard.jsx
+2
-6
3.1.2
→
3.2.1
View file →
| @@ -1,8 +1,5 @@ | ||
| 1 | -import { | |
| 2 | - getRecommendation, | |
| 3 | - recordActivity, | |
| 4 | -} from '@recommendations/utils/record-activity'; | |
| 1 | +import { recordActivity } from '@recommendations/utils/record-activity'; | |
| 5 | 2 | import { recordPluginActivity } from '@shared/api/DataApi'; |
| 6 | 3 | import { activatePlugin, installPlugin } from '@shared/api/wp'; |
| 7 | 4 | import { retryOperation, sleep } from '@shared/lib/utils'; |
| 8 | 5 | import { Button } from '@wordpress/components'; |
| @@ -154,11 +151,10 @@ | ||
| 154 | 151 | setStatus('error'); |
| 155 | 152 | return; |
| 156 | 153 | } |
| 157 | 154 | |
| 158 | - const recommendation = getRecommendation({ product }); | |
| 159 | 155 | recordPluginActivity({ |
| 160 | - slug: recommendation || product, | |
| 156 | + slug: ctaPluginSlug, | |
| 161 | 157 | source: 'search-recommendation-card', |
| 162 | 158 | }); |
| 163 | 159 | |
| 164 | 160 | try { |