From d04904f769f7a36ed2654da29efca57161c54bc8 Mon Sep 17 00:00:00 2001 From: Joyce Yuki <82857964+kathyavini@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:27:01 -0800 Subject: [PATCH] LF-4545 Update logic for showing AnimalInventory Per yesterday's discussion about animals on custom tasks, it will not be task-type defined --- packages/webapp/src/components/Task/TaskReadOnly/index.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/webapp/src/components/Task/TaskReadOnly/index.jsx b/packages/webapp/src/components/Task/TaskReadOnly/index.jsx index 81d6b3269a..33417365c4 100644 --- a/packages/webapp/src/components/Task/TaskReadOnly/index.jsx +++ b/packages/webapp/src/components/Task/TaskReadOnly/index.jsx @@ -171,9 +171,6 @@ export default function PureTaskReadOnly({ setIsDeleting(true); }; - const ANIMAL_TASKS = ['MOVEMENT_TASK']; - const isAnimalTask = ANIMAL_TASKS.includes(taskType.task_translation_key); - return ( )} - {isAnimalTask && ( + {task.animals || task.animal_batches ? (
{'Animals'}
- )} + ) : null} {isAbandoned && (