Skip to content

Commit

Permalink
ok got it
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisinajar committed May 17, 2024
1 parent 0d114a0 commit a8a5219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/shop/shop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function SellItemShop({

function sellItemForItem(item: InventoryItem | string): ShopItem | null {
const itemId = typeof item === "string" ? item : item.baseItem;
const sellItem = sellables.find((shopItem) => shopItem.alias === itemId);
const sellItem = sellables.find((shopItem) => shopItem.id === itemId);

if (!sellItem || !sellItem.cost) {
return null;
Expand Down

0 comments on commit a8a5219

Please sign in to comment.