diff --git a/src/components/HistoryList/AlertItem.tsx b/src/components/HistoryList/AlertItem.tsx index cc75e13..71cabdb 100644 --- a/src/components/HistoryList/AlertItem.tsx +++ b/src/components/HistoryList/AlertItem.tsx @@ -43,9 +43,7 @@ const AlertItem = ({ item }: AlertItemProps) => { path: "alertHistory", }); const oldArray = res?.result; - const updatedArray = oldArray?.filter( - (item: SightingType) => item?.ref !== deletedItem?.ref - ); + const updatedArray = oldArray?.filter((item: SightingType) => item?.ref !== deletedItem?.ref); mutation.mutate({ operation: "INSERT", @@ -58,45 +56,14 @@ const AlertItem = ({ item }: AlertItemProps) => {
Hotlist
+{hotlistName ? hotlistName[0] : "-"}
+