sửa l fix xcall api getTrip

This commit is contained in:
Tran Anh Tuan
2025-11-06 17:45:03 +07:00
parent aabd1109b2
commit 1b748285c9
5 changed files with 29 additions and 33 deletions

View File

@@ -30,7 +30,7 @@ const ButtonCreateNewHaulOrTrip: React.FC<StartButtonProps> = ({
const { trip, getTrip } = useTrip();
useEffect(() => {
getTrip();
}, [trip === null]);
}, []);
const checkHaulFinished = () => {
return trip?.fishing_logs?.some((h) => h.status === 0);