Fix linting
All checks were successful
Code quality checks / biome (push) Successful in 8s

This commit is contained in:
Seth 2025-05-16 00:15:22 -04:00
parent a8d8f7014a
commit e6b8175662
5 changed files with 24 additions and 19 deletions

View file

@ -37,13 +37,18 @@ export default () => {
container.current.textContent = JSON.stringify(
{
status: lanyard.discord_status,
activities: [... new Set(lanyard.activities.map((act) => {
const type = activityTypes[act.type];
const parts = [`${type} ${act.name}`];
if (act.details && act.details !== act.name) parts.push(act.details);
if (act.state && act.state !== act.name) parts.push(act.state);
return parts;
}))],
activities: [
...new Set(
lanyard.activities.map((act) => {
const type = activityTypes[act.type];
const parts = [`${type} ${act.name}`];
if (act.details && act.details !== act.name)
parts.push(act.details);
if (act.state && act.state !== act.name) parts.push(act.state);
return parts;
}),
),
],
},
null,
2,