Addresses UAT-002 (to be logged): Player showing NaN:NaN for time displays
Problem: jamClient methods returning undefined/null/NaN values causing
time displays to show "NaN:NaN" and slider to position incorrectly.
Solution:
- Add null/NaN checks to formatTime utility (return "0:00" for invalid values)
- Add validation in initialization useEffect for duration values
- Add validation in polling useEffect for position and duration values
- Add console logging to diagnose what jamClient methods are returning
This ensures the UI displays valid times even when jamClient returns
unexpected values, and provides logging to diagnose the root cause.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>