Skip to content

Commit

Permalink
restore old codepaths
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed Oct 3, 2024
1 parent 83f0fbf commit 2b51e40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useCurrentMarketId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export const useCurrentMarketId = () => {
hasLoadedLaunchableMarkets
) {
// If marketId is not valid (i.e. final settlement), navigate to markets page
// navigate(AppRoute.Markets, {
// replace: true,
// });
navigate(AppRoute.Markets, {
replace: true,
});
} else {
// If marketId is valid, set currentMarketId
setLastViewedMarket(marketId);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/trade/Trade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const TradePage = () => {
usePageTitlePriceUpdates();
useTradeFormInputs();

if (true && testFlags.pml) {
if (isViewingUnlaunchedMarket && testFlags.pml) {
return <LaunchableMarket />;
}

Expand Down

0 comments on commit 2b51e40

Please sign in to comment.