vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
191 stars 61 forks source link

fix: NaN when string is inputed on quantity input #2534

Closed EmanuelRamos115 closed 2 weeks ago

EmanuelRamos115 commented 3 weeks ago

What's the purpose of this pull request?

Resolves the bug that when typing letters in the quantity input a "NaN" error appears

How it works?

I validated the function to change the input to remove any non-numeric value

How to test it?

Go to the product page and try to enter a value other than a number in the quantity input

https://newswarovskiargentina-cm2bukmqh008u9fpvz46jty9h-rarbnwb8d.b.vtex.app/5662923-conjunto-stilla-tallas-mixtas-multicolor-bano-tono-oro-rosa-11436/p

Checklist

PR Title and Commit Messages

PR Description

Dependencies

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 4:02pm
codesandbox-ci[bot] commented 3 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.