BOHA 7f07032bf2 fix: attendance clock-in silently aborted by broken mountedRef guard
mountedRef was initialized to true but never reset on mount. The
cleanup function (useEffect return) set it to false on unmount. In
React 18 Strict Mode, components mount-unmount-remount during dev.
After the first cleanup, mountedRef stayed false forever.

Result: handlePunch set submitting=true, geolocation callbacks fired,
but every callback returned early at `if (!mountedRef.current) return`
before calling submitPunch. No server request, button stuck.

Fix: add `mountedRef.current = true` inside the useEffect body.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 08:34:01 +02:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
2026-03-23 08:46:51 +01:00
Description
No description provided
16 MiB
v1.5.1 Latest
2026-04-02 20:01:44 +02:00
Languages
TypeScript 94%
CSS 5.9%