Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurenko committed Sep 15, 2023
1 parent 7538ee9 commit 059e175
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/question-editor/QuestionEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ const QuestionEditor: FC<QuestionEditorProps> = ({ fetchData, loading }) => {
))

const disabledButton =
type === 'openAnswer'
? !!text && !!openAnswer
: !!text && !!answers[0]?.text
type === 'openAnswer' ? text && openAnswer : text && answers[0]?.text

const buttons = (
<Box sx={styles.buttons}>
Expand Down

0 comments on commit 059e175

Please sign in to comment.