Fix Party & Timestamp Activities

This commit is contained in:
LeonardSSH
2021-08-12 01:38:31 +02:00
parent e49d96cf86
commit 87860e003e

View File

@@ -348,14 +348,14 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
height: 15px; height: 15px;
margin: 7px 0; margin: 7px 0;
">${activity.state}${ ">${activity.state}${
activity.party activity.party && activity.party.size
? `(${activity.party.size[0]} of ${activity.party.size[1]})` ? ` (${activity.party.size[0]} of ${activity.party.size[1]})`
: "" : ""
}</p>` }</p>`
: `` : ``
} }
${ ${
activity.timestamps && hideTimestamp !== "true" activity.timestamps && activity.timestamps.start && hideTimestamp !== "true"
? ` ? `
<p style=" <p style="
color: ${theme === "dark" ? "#ccc" : "#777"}; color: ${theme === "dark" ? "#ccc" : "#777"};