Skip to content

Commit

Permalink
Replace null with react fragment to handle the false condition
Browse files Browse the repository at this point in the history
Signed-off-by: Aneena John Xavier <[email protected]>
  • Loading branch information
Aneena John Xavier committed Oct 27, 2023
1 parent 873f1eb commit 860ad23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/tasks/TasksContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ export const TasksContent = ({ dev }: { dev?: boolean }) => {
/>
</div>
</>
) : null}
) : (
<></>
)}
<div>
{loadedTasks[selectedTab] && loadedTasks[selectedTab].length ? (
<TaskList tasks={loadedTasks[selectedTab]} />
Expand Down

0 comments on commit 860ad23

Please sign in to comment.