fix auction list, winnerIndex
This commit is contained in:
parent
d9d87407ee
commit
4fb7d50fe5
|
@ -129,8 +129,7 @@ export async function sendRedeemBid(
|
|||
winnerIndex = auctionView.auction.info.bidState.getWinnerIndex(
|
||||
auctionView.myBidderPot?.info.bidderAct,
|
||||
);
|
||||
/**@ToDo need to fix hardcoded winner index for instant sale*/
|
||||
winnerIndex = 0;
|
||||
|
||||
if (winnerIndex !== null) {
|
||||
// items is a prebuilt array of arrays where each entry represents one
|
||||
// winning spot, and each entry in it represents one type of item that can
|
||||
|
|
|
@ -352,6 +352,7 @@ export function processAccountsIntoAuctionView(
|
|||
if (existingAuctionView && existingAuctionView.totallyComplete) {
|
||||
// If totally complete, we know we arent updating anythign else, let's speed things up
|
||||
// and only update the two things that could possibly change
|
||||
existingAuctionView.auction = auction;
|
||||
existingAuctionView.myBidderPot = bidderPot;
|
||||
existingAuctionView.myBidderMetadata = bidderMetadata;
|
||||
existingAuctionView.myBidRedemption = bidRedemption;
|
||||
|
|
|
@ -23,7 +23,7 @@ export enum LiveAuctionViewState {
|
|||
|
||||
export const AuctionListView = () => {
|
||||
const auctions = useAuctions(AuctionViewState.Live);
|
||||
const auctionsEnded = useAuctions(AuctionViewState.Ended);
|
||||
const auctionsEnded = [...useAuctions(AuctionViewState.Ended), ...useAuctions(AuctionViewState.BuyNow)];
|
||||
const [activeKey, setActiveKey] = useState(LiveAuctionViewState.All);
|
||||
const { isLoading } = useMeta();
|
||||
const { connected, publicKey } = useWallet();
|
||||
|
|
Loading…
Reference in New Issue