Skip to content

Commit

Permalink
fix search agency option input
Browse files Browse the repository at this point in the history
Co-authored-by: Celine Ung <[email protected]>
  • Loading branch information
clement-duport authored and celineung committed Feb 3, 2025
1 parent b095847 commit 6e2e0fa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
InclusionConnectedUser,
agencyKindToLabelIncludingIF,
domElementIds,
looksLikeSiret,
} from "shared";
import { useAppSelector } from "src/app/hooks/reduxHooks";
import { routes } from "src/app/routes/routes";
Expand All @@ -37,7 +38,8 @@ export const RegisterAgenciesForm = ({
setIsAllChecked(false);
dispatch(
agenciesSlice.actions.fetchAgencyOptionsRequested({
nameIncludes: event.currentTarget.value,
[looksLikeSiret(event.currentTarget.value) ? "siret" : "nameIncludes"]:
event.currentTarget.value,
status: ["active", "from-api-PE"],
}),
);
Expand Down

0 comments on commit 6e2e0fa

Please sign in to comment.