1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-18 20:39:36 +02:00

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)
);
}
}