Skip to content

Commit 575dbe6

Browse files
committed
front: rename launchPathFinding into handleSubmit in TypeAndPath
Signed-off-by: Clara Ni <[email protected]>
1 parent c24a6ce commit 575dbe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front/src/modules/pathfinding/components/Pathfinding/TypeAndPath.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const TypeAndPath = ({ setDisplayTypeAndPath }: TypeAndPathProps) => {
160160

161161
const isInvalid = useMemo(() => opList.some((op) => !op.name && op.trigram !== ''), [opList]);
162162

163-
const launchPathFinding = async () => {
163+
const handleSubmit = async () => {
164164
if (infraId && rollingStockId && opList.length > 0) {
165165
const pathSteps = opList
166166
.filter((op) => op.trigram !== '')
@@ -265,7 +265,7 @@ const TypeAndPath = ({ setDisplayTypeAndPath }: TypeAndPathProps) => {
265265
type="button"
266266
aria-label={tManageTrainSchedule('launchPathFinding')}
267267
title={tManageTrainSchedule('launchPathFinding')}
268-
onClick={launchPathFinding}
268+
onClick={handleSubmit}
269269
disabled={isInvalid || opList.length < 2}
270270
data-testid="submit-search-by-trigram"
271271
>

0 commit comments

Comments
 (0)