Skip to content

Commit

Permalink
fix: reverted changes on feedback button
Browse files Browse the repository at this point in the history
  • Loading branch information
Formasitchijoh committed Dec 16, 2024
1 parent 8ed5e09 commit bf3c414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/components/common/feedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ const Feedback = ({ assignment, username, current_user }) => {
feedbackList.push(<li key={i.toString()}>{messages[i].message}</li>);
}

if (showFeedbackForm) {
if (!showFeedbackForm) {
feedbackButton = <a onClick={showFeedbackInput} className="button dark">{I18n.t('courses.suggestions_feedback')}</a>;
} else {
feedbackForm = (
<form onSubmit={handleSubmit}>
<textarea className="feedback-form" rows="1" cols="150" ref={inputRef} placeholder={I18n.t('courses.suggestions_feedback')} />
{submitFeedback}
</form>
);
} else {
feedbackButton = <a onClick={showFeedbackInput} className="button dark">{I18n.t('courses.suggestions_feedback')}</a>;
}

let automatedSuggestions;
Expand Down

0 comments on commit bf3c414

Please sign in to comment.