Fix activity display for Custom Status in Lanyard component
Some checks failed
Code quality checks / biome (push) Failing after 6s
Some checks failed
Code quality checks / biome (push) Failing after 6s
This commit is contained in:
parent
26d907d579
commit
6bac1bf833
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue