mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
Fix: Wrong newState
This commit is contained in:
parent
953e6c9360
commit
6a174066bd
1 changed files with 6 additions and 6 deletions
|
|
@ -48,12 +48,12 @@ export class ReviewerState {
|
||||||
public easeButtonPressed(rating: number) {
|
public easeButtonPressed(rating: number) {
|
||||||
const states = this.cardData!.states!;
|
const states = this.cardData!.states!;
|
||||||
|
|
||||||
const newState = ({
|
const newState = ([
|
||||||
[1]: states.again!,
|
states.again!,
|
||||||
[2]: states.hard!,
|
states.hard!,
|
||||||
[3]: states.good!,
|
states.good!,
|
||||||
[4]: states.easy!,
|
states.easy!,
|
||||||
})[rating]!;
|
])[rating]!;
|
||||||
|
|
||||||
this.showQuestion(
|
this.showQuestion(
|
||||||
new CardAnswer({
|
new CardAnswer({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue