Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Aug 20, 2024
1 parent 4d544b8 commit ccb7122
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/applications/auctioneer/Auctions/OwnAuctionItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="item-price">
{#each auction.bidPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -49,7 +49,7 @@
<div class="item-price">
{#each auction.reservePriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -59,7 +59,7 @@
<div class="item-price">
{#each auction.startPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -68,7 +68,7 @@
<div class="item-price buyout-price">
{#each auction.buyoutPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand Down
6 changes: 3 additions & 3 deletions src/applications/auctioneer/Bids/BidItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="item-price">
{#each bid.auction.buyoutPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -52,7 +52,7 @@
<div class="item-price">
{#each bid.auction.bidPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -61,7 +61,7 @@
<div class="item-price blind-price">
{#each bid.auction.startPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand Down
6 changes: 3 additions & 3 deletions src/applications/auctioneer/Browse/AuctionItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="item-price" data-tooltip="Current bid price">
{#each auction.bidPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -51,7 +51,7 @@
<div class="item-price buyout-price" data-tooltip="Buyout price">
{#each auction.buyoutPriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand All @@ -65,7 +65,7 @@
<div class="item-price">
{#each auction.reservePriceData.currencies as currency (currency.id)}
<div class="price">
<span>{currency.quantity}</span>
<span>{currency.cost}</span>
<img src={currency.img}>
</div>
{/each}
Expand Down
18 changes: 9 additions & 9 deletions src/applications/auctioneer/auctioneer-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,31 @@ export function createStore(auctioneer) {
selected: "",
sortBy: "name",
sortByInverse: false,
switch: "price",
switch: "start-price",
sortByColumns: {
"name": { label: "Name", sort: (a, b) => a.item.name > b.item.name ? 1 : -1 },
"time": { label: "Time", sort: (a, b) => b.timeLeft.value - a.timeLeft.value },
"high-bidder": { label: "High Bidder", sort: (a, b) => a.actor.name > b.actor.name ? 1 : -1 },
"bid-type": { label: "Type", sort: (a, b) => a.bidVisibility > b.bidVisibility ? 1 : -1 },
"price": {
label: "Bid/Reserve Price",
"start-price": {
label: "Current Bid / Reserve",
sort: (a, b) => {
return b.bidPriceData.totalPrice - a.bidPriceData.totalPrice
},
tooltip: "Current Bid Price & Reserve Price",
visible: (_, store) => {
return store.tabs.auctions.switch === "price";
return store.tabs.auctions.switch === "start-price";
},
switch: "start-price"
switch: "price"
},
"start-price": {
label: "Start/Buyout Price",
"price": {
label: "Start Price / Buyout",
sort: (a, b) => b.totalPrice - a.totalPrice,
tooltip: "Start Price & Buyout Price",
visible: (_, store) => {
return store.tabs.auctions.switch === "start-price";
return store.tabs.auctions.switch === "price";
},
switch: "price"
switch: "start-price"
},
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function getPriceFromData(priceFlag, actor = false) {
return {
...paymentData,
valid: true,
currencies: currencies.reverse().filter(currency => currency.quantity),
currencies: currencies.reverse().filter(currency => currency.cost),
totalPrice: paymentData.totalCurrencyCost + paymentData.finalPrices
.filter(currency => currency.secondary && currency.quantity)
.reduce((acc, currency) => {
Expand Down

0 comments on commit ccb7122

Please sign in to comment.