Skip to content

Commit

Permalink
feat: marking "in progress" should not close popup #5730 (#5742)
Browse files Browse the repository at this point in the history
  • Loading branch information
SumanKisku committed May 28, 2024
1 parent 6ad1f1f commit 752e16f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/TopicDetail/TopicProgressButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export function TopicProgressButton(props: TopicProgressButtonProps) {
'l',
() => {
if (progress === 'learning') {
onClose();
return;
}

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

0 comments on commit 752e16f

Please sign in to comment.