forked from jsnbuchanan/crowd-funder-for-time-pwa
Chore: lint fix
This commit is contained in:
@@ -144,12 +144,12 @@ export default class EntitySummaryButton extends Vue {
|
||||
*/
|
||||
get nameClasses(): string {
|
||||
const baseClasses = "font-semibold truncate";
|
||||
|
||||
|
||||
// Add italic styling for special "Unnamed" or entities without set names
|
||||
if (!this.entity?.name || this.entity?.did === "") {
|
||||
return `${baseClasses} italic text-slate-500`;
|
||||
}
|
||||
|
||||
|
||||
return baseClasses;
|
||||
}
|
||||
|
||||
@@ -161,12 +161,12 @@ export default class EntitySummaryButton extends Vue {
|
||||
if (this.entity?.name) {
|
||||
return this.entity.name;
|
||||
}
|
||||
|
||||
|
||||
// If the entity is the special "Unnamed", use "Unnamed"
|
||||
if (this.entity?.did === "") {
|
||||
return UNNAMED_ENTITY_NAME;
|
||||
}
|
||||
|
||||
|
||||
// If the entity does not have a set name, but is not the special "Unnamed", use their DID
|
||||
return this.entity?.did;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user