feat: marking "in progress" should not close popup #5730 (#5742)

pull/5753/head
Suman Kisku 6 months ago committed by Kamran Ahmed
parent 627fb1deb0
commit 4a46e5e170
  1. 3
      src/components/TopicDetail/TopicProgressButton.tsx

@ -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();
}) })

Loading…
Cancel
Save