Skip to content

Commit

Permalink
fix: markethasPool func
Browse files Browse the repository at this point in the history
  • Loading branch information
robhyrk committed May 15, 2024
1 parent c588232 commit af4cf24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/markets/[marketid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ const Market: NextPage<MarketPageProps> = ({
(market?.scoringRule === ScoringRule.Cpmm &&
poolId != null &&
poolIdLoading === false) ||
(market?.scoringRule === ScoringRule.Lmsr && market.neoPool != null);
(market?.scoringRule === ScoringRule.AmmCdaHybrid &&
market.neoPool != null);

const poolCreationDate = new Date(
indexedMarket.pool?.createdAt ?? indexedMarket.neoPool?.createdAt ?? "",
Expand Down

0 comments on commit af4cf24

Please sign in to comment.