|
|
@ -82,7 +82,6 @@ export function TopicProgressButton(props: TopicProgressButtonProps) { |
|
|
|
'l', |
|
|
|
'l', |
|
|
|
() => { |
|
|
|
() => { |
|
|
|
if (progress === 'learning') { |
|
|
|
if (progress === 'learning') { |
|
|
|
onClose(); |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -138,7 +137,9 @@ export function TopicProgressButton(props: TopicProgressButtonProps) { |
|
|
|
) |
|
|
|
) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
setProgress(progress); |
|
|
|
setProgress(progress); |
|
|
|
|
|
|
|
if (progress !== 'learning') { |
|
|
|
onClose(); |
|
|
|
onClose(); |
|
|
|
|
|
|
|
} |
|
|
|
renderTopicProgress(topicId, progress); |
|
|
|
renderTopicProgress(topicId, progress); |
|
|
|
refreshProgressCounters(); |
|
|
|
refreshProgressCounters(); |
|
|
|
}) |
|
|
|
}) |
|
|
|