Commit 298dd9bc authored by Curtis Adam's avatar Curtis Adam

Fix a bug in which removes 1 - 3 too many cards from the max workload

parent 20d59efc
......@@ -250,6 +250,7 @@ export let LeitnerUtilities = class LeitnerUtilities {
if (removeCardCount > 0 && boxActiveCardCap[k] > 0) {
if (boxActiveCardCap[k] >= removeCardCount) {
boxActiveCardCap[k] -= removeCardCount;
removeCardCount = 0;
} else {
removeCardCount -= boxActiveCardCap[k];
boxActiveCardCap[k] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment