Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't show ChangeIndicator when change is undefined
the early return at `if (!change) return;` would cause the ChangeIndicator to still be rendered with the text "undefined". This is because it was rendered if `changeText != ''`. A cleaner way is just checking for truthiness. Also generally refactored to simplify and add some comments inside the changeText useMemo()
- Loading branch information