Skip to content

Commit 39c4af0

Browse files
committed
🐛(frontend) hide cursor for authenticated users
When a authenticated user was in read-only mode, the cursor was still visible. This commit hides the cursor for authenticated users in read-only mode.
1 parent 57c5c39 commit 39c4af0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ export const BlockNoteEditor = ({ doc, provider }: BlockNoteEditorProps) => {
8181

8282
const { uploadFile, errorAttachment } = useUploadFile(doc.id);
8383

84-
const collabName =
85-
userData?.full_name ||
86-
userData?.email ||
87-
(readOnly ? 'Reader' : t('Anonymous'));
84+
const collabName = readOnly
85+
? 'Reader'
86+
: userData?.full_name || userData?.email || t('Anonymous');
8887

8988
const editor = useCreateBlockNote(
9089
{

0 commit comments

Comments
 (0)