mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 18:40:06 +00:00
Ensure level 3 product is validated in settings to prevent crash on invalid value
This commit is contained in:
parent
b8e9cb659e
commit
54fd86de5c
1 changed files with 3 additions and 2 deletions
|
|
@ -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 != "?";
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue