Skip to content

Commit be76130

Browse files
committed
feat: open discrete groups
1 parent 2a92ab4 commit be76130

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

front_end/src/app/(main)/questions/create/page.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,13 @@ const Creator: React.FC<{ searchParams: Promise<SearchParams> }> = async (
162162
questionType={t("numericGroup")}
163163
questionExample={`"${t("numericGroupExample")}"`}
164164
/>
165-
{/* {currentUser?.is_staff && ( // TODO: launch Discrete group questions
166-
<QuestionTypePicker
167-
url={createHref("/questions/create/group", {
168-
subtype: QuestionType.Discrete,
169-
})}
170-
questionType={t("discreteGroup")}
171-
questionExample={`"${t("discreteGroupExample")}"`}
172-
/>
173-
)} */}
165+
<QuestionTypePicker
166+
url={createHref("/questions/create/group", {
167+
subtype: QuestionType.Discrete,
168+
})}
169+
questionType={t("discreteGroup")}
170+
questionExample={`"${t("discreteGroupExample")}"`}
171+
/>
174172
<QuestionTypePicker
175173
url={createHref("/questions/create/group", {
176174
subtype: QuestionType.Date,

front_end/src/components/forecast_maker/forecast_maker_group/forecast_maker_group_continuous.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ const ForecastMakerGroupContinuous: FC<Props> = ({
594594
type="button"
595595
isPromptOpen={isWithdrawModalOpen}
596596
isPending={isSubmitting}
597-
onSubmit={handlePredictWithdraw}
597+
onSubmit={() => handlePredictWithdraw()}
598598
onPromptVisibilityChange={setIsWithdrawModalOpen}
599599
>
600600
{t("withdrawAll")}

0 commit comments

Comments
 (0)