@rpg-engine/long-bow 0.8.168 → 0.8.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46842,7 +46842,9 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46842
46842
  enableHotkeys = _ref.enableHotkeys,
46843
46843
  disableHotkeys = _ref.disableHotkeys,
46844
46844
  onMoneyWithdraw = _ref.onMoneyWithdraw,
46845
- currentPage = _ref.currentPage;
46845
+ currentPage = _ref.currentPage,
46846
+ _ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
46847
+ dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
46846
46848
  var _useState = useState(''),
46847
46849
  price = _useState[0],
46848
46850
  setPrice = _useState[1];
@@ -46978,14 +46980,18 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46978
46980
  var item = _ref2.item,
46979
46981
  price = _ref2.price,
46980
46982
  _id = _ref2._id,
46981
- listingCurrency = _ref2.acceptedCurrency;
46983
+ itemCurrency = _ref2.acceptedCurrency;
46984
+ var currency = itemCurrency || MarketplaceAcceptedCurrency.GoldOrDc;
46985
+ var isDcOnly = currency === MarketplaceAcceptedCurrency.Dc;
46986
+ var showDcPrice = isDcOnly || dcToGoldSwapRate > 0 && currency !== MarketplaceAcceptedCurrency.Gold;
46982
46987
  return React.createElement(MarketplaceRows, {
46983
46988
  key: item.key + "_" + index,
46984
46989
  atlasIMG: atlasIMG,
46985
46990
  atlasJSON: atlasJSON,
46986
46991
  item: item,
46987
46992
  itemPrice: price,
46988
- acceptedCurrency: listingCurrency,
46993
+ dcEquivalentPrice: showDcPrice ? goldToDC(price) : undefined,
46994
+ acceptedCurrency: currency,
46989
46995
  equipmentSet: equipmentSet,
46990
46996
  onMarketPlaceItemRemove: setRemovingItemId.bind(null, _id)
46991
46997
  });