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

fix: broken logic in setting and determining the current selected option #277

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

tomaspalma
Copy link
Member

@tomaspalma tomaspalma commented Sep 2, 2024

We access the multiple options current option by multipleOptions[selectedOption] which makes the previous logic prior to this PR broken.

Before the selectedOption would have the value of the option.id that we clicked instead of its position in the array, which was causing issues.

Besides, the logic for checking whether or not an option was selected was broken and was comparing the option ids , instead of what it's done now that is comparing correctly the index of the array

@tomaspalma tomaspalma requested a review from a team September 2, 2024 15:45
@tomaspalma tomaspalma self-assigned this Sep 2, 2024
Copy link

netlify bot commented Sep 2, 2024

Deploy Preview for tts-fe-preview ready!

Name Link
🔨 Latest commit 2595074
🔍 Latest deploy log https://app.netlify.com/sites/tts-fe-preview/deploys/66d5e8fe8020b2000890a569
😎 Deploy Preview https://deploy-preview-277--tts-fe-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tomaspalma tomaspalma force-pushed the fix/reorder-options-not-working branch from 8981815 to 44fb167 Compare September 2, 2024 16:01
@tomaspalma tomaspalma requested review from thePeras and a team September 2, 2024 16:34
@tomaspalma tomaspalma merged commit b937e67 into develop Sep 2, 2024
4 checks passed
@tomaspalma tomaspalma deleted the fix/reorder-options-not-working branch September 3, 2024 20:11
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