Closed rayssamfreitas closed 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 | Jun 26, 2024 2:34pm |
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.
@rayssamfreitas, can you double-check if this version fixes the problem?
"@faststore/core": "https://pkg.csb.dev/vtex/faststore/commit/9ec25832/@faststore/core"
@eduardoformiga, I've tested your version and it works! It resolves the issue. Thank you! I'll close this PR.
Nice! The faststore core version 3.0.77
was published with the fix 🎉
What's the purpose of this pull request?
Need to adjust the SKU validation because when selecting an SKU with the name "7", for example, the SKU with the name "7.5" is being selected instead of "7".
How it works?
The adjustment involves replacing the code that previously used slugs.includes() with strict equality slugs ===
How to test it?
On a product page with SKUs, if you select one named '7', you'll notice that it selects SKU '7.5' instead.