addComponent,
addComponentBreadcrumbs,
addComponentChildren,
- getComponent as getComponentFromBucket,
getComponentBreadcrumbs,
getComponentChildren,
+ getComponent as getComponentFromBucket,
} from './bucket';
const METRICS = [
}
export function mostCommonPrefix(strings: string[]) {
- const sortedStrings = strings.slice(0).sort();
+ const sortedStrings = strings.slice(0).sort((a, b) => a.localeCompare(b));
const firstString = sortedStrings[0];
const firstStringLength = firstString.length;
const lastString = sortedStrings[sortedStrings.length - 1];
render() {
const { comment } = this.props;
const { showEditArea } = this.state;
- const author = comment.authorName || comment.author;
+ const author = comment.authorName ?? comment.author;
const displayName =
comment.authorActive === false && author
? translateWithParameters('user.x_deleted', author)