Closed dstaley closed 11 months ago
Latest commit: 5e9d77c5b08b43c87860c0d6823c03f8d6882886
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
react-components | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Dec 18, 2023 11:48pm |
Latest commit: 5e9d77c5b08b43c87860c0d6823c03f8d6882886
🎟️ [Asana Task]() 🔍 Preview Link
Description
This PR fixes an empty array comparison. In JavaScript, arrays are objects, and equality comparisons only return true if both sides of the operator refer to the same object. By comparing to an empty array literal, this comparison will always return false. In recent versions of TypeScript, this is considered an error, which prevents builds using this code. This PR changes to compare by length instead.
PR Checklist 🚀
Items in this checklist may not may not apply to your PR, but please consider each item carefully.