Skip to content

Commit 081a33a

Browse files
committed
#3628 Prettier
1 parent dde15bb commit 081a33a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/TaskList/v2/TaskListContent.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,16 @@ export const TaskListContent = ({ project }: TaskListProps) => {
8383
try {
8484
await setTaskStatus({ taskId: sourcePost.taskId, status: destinationStatus });
8585
const confettiPositions = [0, 0.15, 0.3, 0.45, 0.6, 0.75, 0.9];
86-
if (destinationStatus === 'DONE') {
86+
if (destinationStatus === 'DONE' && sourceStatus !== 'DONE') {
8787
confettiPositions.forEach((xPos: number) => {
88-
confetti({ origin: { y: -0.5, x: xPos }, angle: 270, gravity: 1.5, startVelocity: 35, spread: 70, particleCount: 25 });
88+
confetti({
89+
origin: { y: -0.5, x: xPos },
90+
angle: 270,
91+
gravity: 1.5,
92+
startVelocity: 35,
93+
spread: 70,
94+
particleCount: 25
95+
});
8996
});
9097
}
9198
} catch (error) {

0 commit comments

Comments
 (0)