Skip to content

Commit

Permalink
Prevent null task category & descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hieungo89 committed Mar 28, 2024
1 parent 7b37fa9 commit 277d7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/taskCard/taskCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const TaskCard = ({ task, isPara }: TaskCardProps) => {

<div style={{ display: "flex", justifyContent: "space-between" }}>
<p>
<strong>{task.category}</strong> - {task.description}
<strong>{task?.category}</strong> - {task?.description}
</p>

<div style={{ display: "flex", gap: "1rem" }}>
Expand Down

0 comments on commit 277d7e1

Please sign in to comment.