Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Feb 15, 2025
1 parent b5de2af commit 98f98b1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/TaskList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ function Task(props) {
<Button
className="lingvo-task__delete"
onClick={() => {
stopNeuroCognateAnalysis({
variables: {
stamp: id
}
});
// For special tasks
if (/\bneuro\b/i.test(task_family) && progress < 100) {
stopNeuroCognateAnalysis({
variables: {
stamp: id
}
});
}
remove(id);
}}
>
Expand Down

0 comments on commit 98f98b1

Please sign in to comment.