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: 🐛 add optional chaining to initial value of character counter #106

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

codyarose
Copy link
Contributor

@codyarose codyarose commented Mar 3, 2021

The initial useState value of valueLength didn't account for a field's value being undefined. More details in the loom about why this was only happening in the "Form with Field Array" story.
https://www.loom.com/share/2df76c585e93494fa83ba0d480779d7c

Closes: #105

The initial `useState` value of `valueLength` didn't account for a
field's value being `undefined`

✅ Closes: #105
@codyarose codyarose requested a review from SeanGroff March 3, 2021 01:22
@codyarose codyarose changed the title fix: 🐛 add optional chaining to initial value of useState fix: 🐛 add optional chaining to initial value of character counter Mar 3, 2021
Copy link
Contributor

@SeanGroff SeanGroff left a comment

Choose a reason for hiding this comment

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

Always love a 1 character fix 👍

@SeanGroff SeanGroff merged commit 71d7b10 into master Mar 3, 2021
@SeanGroff SeanGroff deleted the fix/Issue-105 branch March 3, 2021 17:20
@SeanGroff
Copy link
Contributor

🎉 This PR is included in version 3.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Storybook GH Action Failing due to error in a Story
3 participants