Skip to content

Commit

Permalink
小田急デグレ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyKitten committed Jul 18, 2024
1 parent d8c3c61 commit 05adff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useNextTrainType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ const useNextTrainType = (): TrainType | null => {
// 同じ路線でも種別が変わる場合を想定(小田急線等)
const sameLineNextType = useMemo(() => {
if (
trainType?.line?.id !== nextLine?.id &&
trainType?.line?.company?.id !== nextLine?.company?.id
nextLine &&
trainType?.line?.id !== nextLine.id &&
trainType?.line?.company?.id !== nextLine.company?.id
) {
return
}
Expand Down Expand Up @@ -45,8 +46,7 @@ const useNextTrainType = (): TrainType | null => {
.find((tt) => tt?.typeId !== trainType?.typeId)
}, [
currentStation?.groupId,
nextLine?.company?.id,
nextLine?.id,
nextLine,
selectedDirection,
stations,
trainType?.line?.company?.id,
Expand Down

0 comments on commit 05adff6

Please sign in to comment.