Skip to content

Commit

Permalink
Actually add commas to store
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jul 28, 2024
1 parent 871ba40 commit e6ddc34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/Items/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Store extends Command {

// Construct the message with item names
const itemDetails = Object.entries(store).map(([itemName, itemInfo], index) => {
const csCost = currencySymbol + BigInt(itemInfo.cost);
const trimmedCost = csCost.length > 300 ? csCost.toLocaleString().slice(0, 400) + '...' : csCost.toLocaleString();
const csCost = currencySymbol + BigInt(itemInfo.cost).toLocaleString();
const trimmedCost = csCost.length > 300 ? csCost.slice(0, 400) + '...' : csCost;
return {
display: `${index + 1}. **${itemName}** - ${trimmedCost}\n${itemInfo.description}`,
};
Expand Down

0 comments on commit e6ddc34

Please sign in to comment.