Ensure level 3 product is validated in settings to prevent crash on invalid value

This commit is contained in:
Dan Paulat 2025-09-14 11:48:25 -05:00
parent b8e9cb659e
commit 54fd86de5c

View file

@ -86,8 +86,9 @@ public:
}
else
{
// TODO: Validate level 3 product
return true;
// Validate level 3 product
auto level3Product = common::GetLevel3ProductByAwipsId(value);
return !level3Product.empty() && level3Product != "?";
}
});