Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: FormattedRelativeTime with high seconds values (#1385)
* Fix FormattedRelativeTime with high seconds values Expected: For an item with an age of 3 days, on initial load don't add the timer but do show "3 days ago" Actual: Item shows "1 day ago" now matter how old it is The FormattedRelativeTime intends to stop using a timer once it goes over one day. However, at the point it removes this timer it also fixes the value at one day, so the display can only ever be "1 day ago", which is incorrect. This fix removes the overriding of the current state value, but continues to bypass the timer. It also adds a test for this case (which was failing before the fix)
- Loading branch information