Skip to content

Commit

Permalink
Wizard: check before accessing undefined property
Browse files Browse the repository at this point in the history
  • Loading branch information
avitova committed Nov 5, 2024
1 parent 634d0b2 commit 5d1300a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const PackageRecommendations = () => {
},
});

if (response && response.data && response.data.packages.length > 0) {
if (response && response.data && response.data.packages && response.data.packages.length > 0) {
analytics.track(
`${AMPLITUDE_MODULE_NAME}-packageRecommendationsShown`,
{
Expand Down

0 comments on commit 5d1300a

Please sign in to comment.