mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-12-23 22:58:17 -05:00
Enhance unlinked state logic in TransportationCard to account for missing dates
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user