Skip to content

fix(frontend): remove the remaining isMeTheCurrentUser references - #699

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

fix(frontend): remove the remaining isMeTheCurrentUser references#699
gary-Shen merged 1 commit into
onlinefrom
fix/undefined-is-me-the-current-user

Conversation

@gary-Shen

Copy link
Copy Markdown
Member

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.

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 7f3bff7 into online Jul 21, 2026
1 check passed
@gary-Shen
gary-Shen deleted the fix/undefined-is-me-the-current-user branch July 21, 2026 08:15
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