diff --git a/src/components/TopicDetail/TopicProgressButton.tsx b/src/components/TopicDetail/TopicProgressButton.tsx index dcebcd4e2..e1a2ba11a 100644 --- a/src/components/TopicDetail/TopicProgressButton.tsx +++ b/src/components/TopicDetail/TopicProgressButton.tsx @@ -82,7 +82,6 @@ export function TopicProgressButton(props: TopicProgressButtonProps) { 'l', () => { if (progress === 'learning') { - onClose(); return; } @@ -138,7 +137,9 @@ export function TopicProgressButton(props: TopicProgressButtonProps) { ) .then(() => { setProgress(progress); - onClose(); + if (progress !== 'learning') { + onClose(); + } renderTopicProgress(topicId, progress); refreshProgressCounters(); })