Enhance unlinked state logic in TransportationCard to account for missing dates

This commit is contained in:
Sean Morley
2024-12-26 22:10:03 -05:00
parent 8f7551f4be
commit 46e3e91679

View File

@@ -35,7 +35,11 @@
collection.start_date > transportation.end_date &&
collection.end_date > transportation.end_date;
unlinked = !!(startOutsideRange || endOutsideRange);
unlinked = !!(
startOutsideRange ||
endOutsideRange ||
(!transportation.date && !transportation.end_date)
);
}
}