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:
parent
a799d70a85
commit
79d54eed7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue