Skip to content

Commit

Permalink
Merge pull request #712 from StampyAI/Ticket-#695
Browse files Browse the repository at this point in the history
Ticket #695
  • Loading branch information
zarSou9 authored Jun 9, 2024
2 parents 04a5ecf + 2d19858 commit cda9f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/Feedback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const Feedback = ({
hint={upHint}
setVoted={setVoted}
onClick={() => {
if (pageid === 'chatbot') onSubmit('Helpful', undefined)
setShowThanks(true)
}}
/>
Expand All @@ -74,6 +75,7 @@ const Feedback = ({
disabled={voted}
setVoted={setVoted}
onClick={() => {
if (pageid === 'chatbot') onSubmit('Unhelpful', undefined)
if (!showForm) setShowThanks(true)
setShowFeedbackForm(!!showForm)
}}
Expand Down
1 change: 1 addition & 0 deletions app/routes/questions.actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export const Action = ({
onClick()
}
setActionTaken(!actionTaken)
if (pageid === 'chatbot') return

// This sort of cheats - if more than 1 request is sent per second (or some other such time
// period), one of them will be (sort of) picked at random. This should be ok in the long run.
Expand Down

0 comments on commit cda9f15

Please sign in to comment.