mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
sentCardId -> requestedCardId
This commit is contained in:
parent
8eed005db6
commit
0b3b3a5f33
1 changed files with 3 additions and 3 deletions
|
@ -17,10 +17,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
$: if (cardId === null) {
|
$: if (cardId === null) {
|
||||||
stats = undefined;
|
stats = undefined;
|
||||||
} else {
|
} else {
|
||||||
const sentCardId = cardId;
|
const requestedCardId = cardId;
|
||||||
getCardStats(sentCardId).then((s) => {
|
getCardStats(requestedCardId).then((s) => {
|
||||||
/* Skip if another update has been triggered in the meantime. */
|
/* Skip if another update has been triggered in the meantime. */
|
||||||
if (sentCardId === cardId) {
|
if (requestedCardId === cardId) {
|
||||||
stats = s;
|
stats = s;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue