Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PC-32282)[PRO] fix: Don't reset location label in generic function #14545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jclery-pass
Copy link
Contributor

But de la pull request

Ticket Jira (ou description si BSR) : https://passculture.atlassian.net/browse/PC-32282

Copy link
Contributor

github-actions bot commented Oct 9, 2024

Visit the preview URL for this PR (updated for commit 2fce319):

https://pc-pro-testing--pr14545-pc-32282-ne-pas-vide-wra4djhs.web.app

(expires Fri, 11 Oct 2024 14:38:18 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 032d233ee67e1c50d6af12e29c936c7076770eb1

Comment on lines +65 to +66
await formik.setFieldValue('locationLabel', '')
await formik.setFieldTouched('locationLabel', false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est pas ce qui est fait dans resetAddressFields ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Au départ si, mais resetAddressFields est appelé à deux endroits, et pour l'un des deux on ne souhaite pas réinitialiser le champs "label" (origine du ticket)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah d'accord !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants