Skip to content

Commit

Permalink
fix(studio): Filter spaces in the Siren / RNSR field
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jul 11, 2024
1 parent 0083ed3 commit 0c4a5a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SubmissionForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ const SubmissionForm = () => {

const setInstitutionId = async (e) => {
e.preventDefault();
const institutionId = e.target.value;
const institutionId = e.target.value.replaceAll(' ', '');
setId(institutionId);
try {
const options = {
Expand Down Expand Up @@ -413,7 +413,7 @@ const SubmissionForm = () => {
value={acronym}
/>
<TextInput
hint='Utiliser https://scanr.enseignementsup-recherche.gouv.fr/ pour trouver le Siren de votre structure'
hint='Utiliser https://scanr.enseignementsup-recherche.gouv.fr/search/organizations pour trouver le Siren de la structure'
label='Siren ou RNSR de la structure'
onChange={(e) => setInstitutionId(e)}
value={id}
Expand All @@ -431,7 +431,7 @@ const SubmissionForm = () => {
</div>
)}
<TextInput
hint='Utiliser https://ror.org/ pour trouver le RoR de votre structure'
hint='Utiliser https://ror.org/ pour trouver le RoR de la structure'
label='RoR de la structure'
onChange={(e) => setRor(e.target.value)}
value={ror}
Expand Down

0 comments on commit 0c4a5a2

Please sign in to comment.