Fix activity display for Custom Status in Lanyard component
Some checks failed
Code quality checks / biome (push) Failing after 6s

This commit is contained in:
Seth 2025-05-16 00:22:12 -04:00
parent 26d907d579
commit 6bac1bf833

View file

@ -41,7 +41,7 @@ export default () => {
...new Set( ...new Set(
lanyard.activities.map((act) => { lanyard.activities.map((act) => {
const type = activityTypes[act.type]; const type = activityTypes[act.type];
const parts = [`${type} ${act.name}`]; const parts = [`${type} ${act.name === "Custom Status" ? "" : act.name}`];
if (act.details && act.details !== act.name) if (act.details && act.details !== act.name)
parts.push(act.details); parts.push(act.details);
if (act.state && act.state !== act.name) parts.push(act.state); if (act.state && act.state !== act.name) parts.push(act.state);