mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
49e618cbc7
On the desktop journey page, the eye toggle that hides the suggested entries flipped the view and then saved the preference. When that save was refused (offline, a server error) the promise rejected into a click handler nothing awaited, leaving an unhandled rejection behind. The phone already treats this as a view preference: it keeps the local flip until the next load and swallows the failure on purpose. The desktop toggle now does the same. Red before the fix: src/pages/JourneyDetailPage.wiring.test.tsx FE-JRN-DETWIRE-042 failed with "expected vi.fn() to not be called at all, but actually been called 1 times" on the unhandledRejection listener, called with [Error: offline]. No existing assertions changed.