mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-01 06:50:26 +02:00
committed by
Kamran Ahmed
parent
627fb1deb0
commit
4a46e5e170
@@ -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();
|
||||
})
|
||||
|
Reference in New Issue
Block a user