File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -458,19 +458,19 @@ const AssignUnassignEventView = ({ event }: { event: AssignEvent | UnassignEvent
458458 const unassignees = ( event as UnassignEvent ) . unassignees || [ ] ;
459459 const joinedAssignees = joinWithAnd ( assignees . map ( a => < AuthorLink key = { `${ a . id } a` } for = { a } /> ) ) ;
460460 const joinedUnassignees = joinWithAnd ( unassignees . map ( a => < AuthorLink key = { `${ a . id } u` } for = { a } /> ) ) ;
461-
461+
462462 // Check if actor is assigning/unassigning themselves
463463 const isSelfAssign = assignees . length === 1 && assignees [ 0 ] . login === actor . login ;
464464 const isSelfUnassign = unassignees . length === 1 && unassignees [ 0 ] . login === actor . login ;
465465
466466 let message : JSX . Element ;
467467 if ( assignees . length > 0 && unassignees . length > 0 ) {
468468 // Handle mixed case with potential self-assignment
469- const assignMessage = isSelfAssign ? < > assigned themselves </ > : < > assigned { joinedAssignees } </ > ;
469+ const assignMessage = isSelfAssign ? < > self- assigned this </ > : < > assigned { joinedAssignees } </ > ;
470470 const unassignMessage = isSelfUnassign ? < > removed their assignment</ > : < > unassigned { joinedUnassignees } </ > ;
471471 message = < > { assignMessage } and { unassignMessage } </ > ;
472472 } else if ( assignees . length > 0 ) {
473- message = isSelfAssign ? < > assigned themselves </ > : < > assigned { joinedAssignees } </ > ;
473+ message = isSelfAssign ? < > self- assigned this </ > : < > assigned { joinedAssignees } </ > ;
474474 } else {
475475 message = isSelfUnassign ? < > removed their assignment</ > : < > unassigned { joinedUnassignees } </ > ;
476476 }
You can’t perform that action at this time.
0 commit comments