don't hide free response panel on open resolve

This commit is contained in:
Sinclair Chen 2022-10-06 15:20:46 -07:00
parent adb809f973
commit d9c8925ea0

View File

@ -157,11 +157,9 @@ export function AnswersPanel(props: {
<div className="pb-4 text-gray-500">No answers yet...</div> <div className="pb-4 text-gray-500">No answers yet...</div>
)} )}
{outcomeType === 'FREE_RESPONSE' && {outcomeType === 'FREE_RESPONSE' && tradingAllowed(contract) && (
tradingAllowed(contract) && <CreateAnswerPanel contract={contract} />
(!resolveOption || resolveOption === 'CANCEL') && ( )}
<CreateAnswerPanel contract={contract} />
)}
{(user?.id === creatorId || (isAdmin && needsAdminToResolve(contract))) && {(user?.id === creatorId || (isAdmin && needsAdminToResolve(contract))) &&
!resolution && ( !resolution && (