From 4a46e5e1701040df838150f4322212192acefb2c Mon Sep 17 00:00:00 2001 From: Suman Kisku Date: Tue, 28 May 2024 15:27:13 +0530 Subject: [PATCH] feat: marking "in progress" should not close popup #5730 (#5742) --- src/components/TopicDetail/TopicProgressButton.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); })