aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/timeline/TimelineCard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/views/timeline/TimelineCard.tsx')
-rw-r--r--FrontEnd/src/views/timeline/TimelineCard.tsx16
1 files changed, 5 insertions, 11 deletions
diff --git a/FrontEnd/src/views/timeline/TimelineCard.tsx b/FrontEnd/src/views/timeline/TimelineCard.tsx
index 56057560..339fbfa0 100644
--- a/FrontEnd/src/views/timeline/TimelineCard.tsx
+++ b/FrontEnd/src/views/timeline/TimelineCard.tsx
@@ -58,17 +58,11 @@ const TimelineCard: React.FC<TimelinePageCardProps> = (props) => {
setDialog={setDialog}
{...props}
/>
- {(() => {
- if (dialog === "delete") {
- return (
- <TimelineDeleteDialog
- timeline={timeline}
- open
- close={() => setDialog(null)}
- />
- );
- }
- })()}
+ <TimelineDeleteDialog
+ timeline={timeline}
+ open={dialog === "delete"}
+ close={() => setDialog(null)}
+ />
</>
);
};