From 9d31d56ec041d5bfe8e42e22773e730e1e4c1baa Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 16 May 2023 13:30:19 -0500 Subject: [PATCH] fix missing advanced options in bounty/discussion form --- components/bounty-form.js | 3 +-- components/discussion-form.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/bounty-form.js b/components/bounty-form.js index 4ada054e..7043512f 100644 --- a/components/bounty-form.js +++ b/components/bounty-form.js @@ -17,7 +17,6 @@ export function BountyForm ({ bountyLabel = 'bounty', textLabel = 'text', buttonText = 'post', - adv, handleSubmit, children }) { @@ -112,7 +111,7 @@ export function BountyForm ({ : null } /> - {adv && } +
{item ? ( diff --git a/components/discussion-form.js b/components/discussion-form.js index a0515a57..3517877b 100644 --- a/components/discussion-form.js +++ b/components/discussion-form.js @@ -16,7 +16,7 @@ import { SubSelectInitial } from './sub-select-form' export function DiscussionForm ({ item, sub, editThreshold, titleLabel = 'title', textLabel = 'text', buttonText = 'post', - adv, handleSubmit, children + handleSubmit, children }) { const router = useRouter() const client = useApolloClient() @@ -98,7 +98,7 @@ export function DiscussionForm ({ ?
: null} /> - {adv && } +
{item ? (