Skip to content

Commit

Permalink
front: drop pathfinding error message bubble
Browse files Browse the repository at this point in the history
The "pathfindingError" translation needs an "errorMessage" property,
so it's not displayed properly.

Since the error is already displayed to the user in a different way,
we can just drop the bubble.

To reproduce:

- Select a train in small_infra
- Switch to another infra (e.g. France)
- Open the "Create new train" modal

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Feb 4, 2025
1 parent ebbbbc4 commit 5db8398
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion front/src/modules/pathfinding/hooks/usePathfinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const usePathfinding = (
launchPathfinding(updatedPathSteps);
} else {
setError(t('missingPathSteps'));
dispatch(setFailure({ name: t('pathfindingError'), message: t('missingPathSteps') }));
}
};

Expand Down

0 comments on commit 5db8398

Please sign in to comment.