Skip to content

Fix/undefined is me the current user - #700

Merged
gary-Shen merged 2 commits into
onlinefrom
fix/undefined-is-me-the-current-user
Jul 21, 2026
Merged

Fix/undefined is me the current user#700
gary-Shen merged 2 commits into
onlinefrom
fix/undefined-is-me-the-current-user

Conversation

@gary-Shen

Copy link
Copy Markdown
Member

No description provided.

shlab and others added 2 commits July 21, 2026 16:14
f502ca2 dropped the definition of isMeTheCurrentUser along with the
collaborator avatar block, but left seven references behind: the guards
in saveCurrentSample, handleSkipSample and handleCancelSkipSample, two
dependency arrays, and the disabled props on skip, cancel-skip and
finish. The annotation page therefore threw

  ReferenceError: isMeTheCurrentUser is not defined

on render. vite build does not catch this -- esbuild treats an unknown
identifier as a global -- but eslint reports it as no-undef.

Finishes that change: removes the leftover references, the now-unused
useMe/UserAvatar/QuestionCircleOutlined imports, and the currentEditingUser
destructure, which the context has never declared on this branch (that
one also silenced a TS2339).

Behaviour matches the intent of f502ca2: no collaboration gating, so
skip, finish and save work again alongside auto-label.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gary-Shen
gary-Shen merged commit 20ec4d7 into online Jul 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant