Fix the view command having the claimed by field when it doesn't need it #292

Merged
Vylpes merged 1 commit from feature/276-view-claimed-by into develop 2024-07-08 17:55:13 +01:00
Showing only changes of commit 1b13e7c2fd - Show all commits

View file

@ -94,13 +94,18 @@ export default class CardDropHelperMetadata {
name: "Claimed", name: "Claimed",
value: `${quantityClaimed}`, value: `${quantityClaimed}`,
inline: true, inline: true,
}, }
]);
if (claimedBy != null) {
embed.addFields([
{ {
name: "Claimed by", name: "Claimed by",
value: claimedBy ?? "(UNCLAIMED)", value: claimedBy,
inline: true, inline: true,
} }
]); ]);
}
if (currency != null) { if (currency != null) {
embed.addFields([ embed.addFields([