Wizard: Fix information rendered in package recommendations

When a package got selected and deselected again, landing on 0 for selected packages, the information shown in the package recommendations was "Select packages to generate recommendations.No recommendations found for the set of selected packages", this updates the logic to separate the messages.
This commit is contained in:
regexowl 2024-08-07 10:06:51 +02:00 committed by Klara Simickova
parent a799d70a85
commit 79d54eed7b

View file

@ -164,7 +164,7 @@ const PackageRecommendations = () => {
again by changing your selected packages.
</Alert>
)}
{isSuccess && !data?.packages?.length && (
{isSuccess && !data?.packages?.length && packages.length > 0 && (
<>No recommendations found for the set of selected packages</>
)}
{isSuccess && data && data?.packages && (