Merge pull request #262 from answerdev/feat/1.0.7/ui

fix: closed question hidden write answer
This commit is contained in:
dashuai 2023-03-16 14:16:30 +08:00 committed by GitHub
commit f2610a5c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -240,15 +240,17 @@ const Index = () => {
</div>
)}
{!isLoading && !question?.operation?.type && (
<WriteAnswer
data={{
qid,
answered: question?.answered,
}}
callback={writeAnswerCallback}
/>
)}
{!isLoading &&
Number(question?.status) !== 2 &&
!question?.operation?.type && (
<WriteAnswer
data={{
qid,
answered: question?.answered,
}}
callback={writeAnswerCallback}
/>
)}
</Col>
<Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0">
<RelatedQuestions id={question?.id || ''} />