Cargo request console search now includes crate descriptions (#25708)

added condition checking description to cargo search
This commit is contained in:
Flesh
2024-03-01 03:23:12 +01:00
committed by GitHub
parent 2852483b5c
commit c83ad11be1

View File

@@ -92,6 +92,7 @@ namespace Content.Client.Cargo.UI
// else if category and not search
if (search.Length == 0 && _category == null ||
search.Length != 0 && prototype.Name.ToLowerInvariant().Contains(search) ||
search.Length != 0 && prototype.Description.ToLowerInvariant().Contains(search) ||
search.Length == 0 && _category != null && prototype.Category.Equals(_category))
{
var button = new CargoProductRow