Skip to content

Commit

Permalink
Merge branch 'dev' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSlain committed Jan 24, 2025
2 parents b94d039 + 6195de7 commit 4f9c1c6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
3 changes: 1 addition & 2 deletions src/api/useAddFeedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ interface AddFeedbackParams {
}

const addFeedback = async ({ feedback, streamId }: AddFeedbackParams) => {
console.log('addFeedback', feedback, streamId)
const authToken = localStorage.getItem('authToken')
const data = {
is_good: !feedback.isGood,
is_good: feedback.isGood === null ? null : !feedback.isGood,
message: feedback.message,
positives: feedback.positives ? feedback.positives : [],
negatives: feedback.negatives ? feedback.negatives : [],
Expand Down
14 changes: 0 additions & 14 deletions src/components/Feedbacks/ButtonsOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,7 @@ export function ButtonsOptions<T extends PositiveReason | NegativeReason>({
setButtonsType,
setOtherReason,
}: ButtonsOptionsProps<T>) {
console.log(
'isFirst:',
isFirst,
'buttonsType:',
buttonsType,
'reasons:',
reasons,
'setReasons:',
setReasons,
'setButtonsType:',
setButtonsType,
)

const handleClick = (reasonValue: T) => {
console.log('handleclick:', 'reasonValue:', reasonValue)
if (reasons.includes(reasonValue)) {
setReasons(reasons.filter((reason) => reason !== reasonValue))
} else {
Expand Down
4 changes: 0 additions & 4 deletions src/pages/Evaluations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,6 @@ function AnswerPannel({
}
}, [])

useEffect(() => {
console.log('render response panel')
}, [])

async function askAlbert() {
const headers = setHeaders(false)
const stream_data = {
Expand Down

0 comments on commit 4f9c1c6

Please sign in to comment.