Skip to content

Commit ed95ad5

Browse files
committed
avoid undefined
1 parent e0099e2 commit ed95ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popup/util/fsrs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const updateProblemWithFSRS = (problem, feedback) => {
9494
card_id: problem.index, // 使用问题索引作为卡片ID
9595
review_time: now, // 复习时间(毫秒时间戳)
9696
review_rating: qualityToRating(feedback.quality), // 复习评分 (1-4)
97-
review_state: TypeConvert.state(problem.fsrsState ? problem.fsrsState?.state : 'New') // 复习状态 (0-3)
97+
review_state: TypeConvert.state(problem.fsrsState ? problem.fsrsState?.state ?? State.New : 'New') // 复习状态 (0-3)
9898
};
9999

100100
// 将复习日志存储到单独的 localStorage 键中

0 commit comments

Comments
 (0)