Skip to content

Commit e1ae788

Browse files
fix(#931): replace mojibake (corrupted UTF-8) strings in useStudyGroups toast and notification messages
Fix three user-facing strings in useStudyGroups.tsx that showed garbled characters: - toast.success: 'Created group "..."' - smart quotes were corrupted to '“/â€Â�'\n- addNotification toast: same quote corruption in message template\n- toast 'Left group': wave emoji icon corrupted from '👋' to '👋'\n\nThese were caused by UTF-8 bytes being misinterpreted as Latin-1 (mojibake). Replaced with proper ASCII quotes and the Unicode emoji character.
1 parent c44c6d9 commit e1ae788

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/hooks/useStudyGroups.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ export function useStudyGroups(currentUser?: { id: string; name: string }): UseS
265265
const { addNotification } = useNotificationStore.getState();
266266
addNotification({
267267
type: 'success',
268-
message: `Created group “${group.name}”`,
268+
message: `Created group "${group.name}"`,
269269
meta: { groupId: group.id },
270270
});
271271
} catch {}
272-
toast.success(`Created group “${group.name}”`);
272+
toast.success(`Created group "${group.name}"`);
273273
return group;
274274
},
275275
[me.id, me.name, triggerSync],
@@ -326,7 +326,7 @@ export function useStudyGroups(currentUser?: { id: string; name: string }): UseS
326326
meta: { groupId },
327327
});
328328
} catch {}
329-
toast('Left group', { icon: '👋' });
329+
toast('Left group', { icon: '👋' });
330330
},
331331
[me.id, triggerSync],
332332
);

0 commit comments

Comments
 (0)