aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectActivity/components
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/components')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/Event.js4
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/Events.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js b/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js
index 1902f12fc68..6697449dc5d 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js
@@ -78,8 +78,8 @@ export default class Event extends React.PureComponent {
render() {
const { event, canAdmin } = this.props;
const canChange = ['OTHER', 'VERSION'].includes(event.category);
- const canDelete = event.category === 'OTHER' ||
- (event.category === 'VERSION' && !this.props.isFirst);
+ const canDelete =
+ event.category === 'OTHER' || (event.category === 'VERSION' && !this.props.isFirst);
const showActions = canAdmin && (canChange || canDelete);
return (
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/Events.js b/server/sonar-web/src/main/js/apps/projectActivity/components/Events.js
index 6779c389924..36a931422a5 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/Events.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/Events.js
@@ -34,7 +34,7 @@ export default function Events(props: Props) {
const sortedEvents: Array<EventType> = sortBy(
props.events,
// versions first
- (event: EventType) => event.category === 'VERSION' ? 0 : 1,
+ (event: EventType) => (event.category === 'VERSION' ? 0 : 1),
// then the rest sorted by category
'category'
);