|
|
@ -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); |
|
|
|
onClose(); |
|
|
|
if (progress !== 'learning') { |
|
|
|
|
|
|
|
onClose(); |
|
|
|
|
|
|
|
} |
|
|
|
renderTopicProgress(topicId, progress); |
|
|
|
renderTopicProgress(topicId, progress); |
|
|
|
refreshProgressCounters(); |
|
|
|
refreshProgressCounters(); |
|
|
|
}) |
|
|
|
}) |
|
|
|