We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1221ab2 commit 63fc278Copy full SHA for 63fc278
2 files changed
changelog.md
@@ -1,4 +1,5 @@
1
# v1.0.2
2
+- Fix issue with *Mock your 90%+ Fail* option fetching records
3
- Fix UI ordering issues
4
5
# v1.0.1
src/hooks/Mock.cpp
@@ -42,10 +42,10 @@ class $modify(MockMenuLayer, MenuLayer) {
42
auto const mockConfigUnwr = mockConfig.unwrapOr(matjson::Value());
43
44
auto const lvlUnwr = mockConfigUnwr.begin();
45
- auto const lvl = lvlUnwr->get(rng::get(lvlUnwr->size())).unwrapOr(matjson::Value());
+ auto const lvl = lvlUnwr->get(rng::get(lvlUnwr->size() - 1)).unwrapOr(matjson::Value());
46
47
auto const id = lvl.getKey().value_or("");
48
- auto percent = lvl.asInt().unwrapOr(99);
+ auto percent = lvl.asInt().unwrapOr(90);
49
50
if (!id.empty()) {
51
log::trace("ID {} with percentage {} is valid", id, percent);
0 commit comments