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

Loading…
Cancel
Save