mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +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
|
else
|
||||||
{
|
{
|
||||||
// TODO: Validate level 3 product
|
// Validate level 3 product
|
||||||
return true;
|
auto level3Product = common::GetLevel3ProductByAwipsId(value);
|
||||||
|
return !level3Product.empty() && level3Product != "?";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue