- {annotation.userName.charAt(0).toUpperCase()}
+ {annotation.user.name.charAt(0).toUpperCase()}
- {annotation.userName}
+ {annotation.user.name}
{new Date(annotation.createdAt).toLocaleDateString()}
@@ -327,7 +339,7 @@ export function AnnotationSystem({
{/* Edit/Delete buttons for user's own annotations */}
- {annotation.userId === currentUser.id && (
+ {annotation.userId === currentUser.id.toString() && (