mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -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) {
|
||||
const states = this.cardData!.states!;
|
||||
|
||||
const newState = ({
|
||||
[1]: states.again!,
|
||||
[2]: states.hard!,
|
||||
[3]: states.good!,
|
||||
[4]: states.easy!,
|
||||
})[rating]!;
|
||||
const newState = ([
|
||||
states.again!,
|
||||
states.hard!,
|
||||
states.good!,
|
||||
states.easy!,
|
||||
])[rating]!;
|
||||
|
||||
this.showQuestion(
|
||||
new CardAnswer({
|
||||
|
|
|
|||
Loading…
Reference in a new issue