Chore: lint fix

This commit is contained in:
Jose Olarte III
2025-08-26 16:52:32 +08:00
parent ec326495b2
commit ec53452220
6 changed files with 24 additions and 18 deletions

View File

@@ -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;
}