fix: Ensure initials on avatars are always displayed uppercase
This commit is contained in:
@@ -133,7 +133,7 @@ export default class Collection extends ParanoidModel {
|
|||||||
*/
|
*/
|
||||||
@computed
|
@computed
|
||||||
get initial() {
|
get initial() {
|
||||||
return this.name ? this.name[0] : "?";
|
return (this.name ? this.name[0] : "?").toUpperCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchDocuments = async (options?: { force: boolean }) => {
|
fetchDocuments = async (options?: { force: boolean }) => {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class Team extends Model {
|
|||||||
|
|
||||||
@computed
|
@computed
|
||||||
get initial(): string {
|
get initial(): string {
|
||||||
return this.name ? this.name[0] : "?";
|
return (this.name ? this.name[0] : "?").toUpperCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class User extends ParanoidModel {
|
|||||||
|
|
||||||
@computed
|
@computed
|
||||||
get initial(): string {
|
get initial(): string {
|
||||||
return this.name ? this.name[0] : "?";
|
return (this.name ? this.name[0] : "?").toUpperCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
|
|||||||
Reference in New Issue
Block a user