From 1f8aef2891e3e900a4c995358ee950bc1d97257c Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sat, 6 Aug 2022 17:45:19 -0700 Subject: [PATCH] Disable challenges for private instances --- common/challenge.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/challenge.ts b/common/challenge.ts index 1a227f94..9bac8c08 100644 --- a/common/challenge.ts +++ b/common/challenge.ts @@ -1,3 +1,5 @@ +import { IS_PRIVATE_MANIFOLD } from './envs/constants' + export type Challenge = { // The link to send: https://manifold.markets/challenges/username/market-slug/{slug} // Also functions as the unique id for the link. @@ -60,4 +62,4 @@ export type Acceptance = { createdTime: number } -export const CHALLENGES_ENABLED = true +export const CHALLENGES_ENABLED = !IS_PRIVATE_MANIFOLD