fix: wording when a package has no platforms list (#774)

This commit is contained in:
Aleksana 2024-06-07 00:00:43 +08:00 committed by GitHub
parent ff354507cd
commit 2758f7657a
Failed to generate hash of commit

View file

@ -490,7 +490,7 @@ viewResultItem nixosChannels channel showInstallDetails show item =
, div []
(List.append [ h4 [] [ text "Platforms" ] ]
(if List.isEmpty item.source.platforms then
[ p [] [ text "This package is not available on any platform." ] ]
[ p [] [ text "This package does not list its available platforms." ] ]
else
[ ul [] (List.map showPlatform (List.sort item.source.platforms)) ]