Fix: Wrong newState

This commit is contained in:
Luc Mcgrady 2025-10-04 21:09:16 +01:00
parent 953e6c9360
commit 6a174066bd
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -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({