Skip to content

Commit

Permalink
fix: user feedback is showing
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Aug 28, 2024
1 parent 7d02b6e commit 4e023d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/nextjs/src/components/Feedback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const FeedBack = ({
const [usersResponse, setUsersResponse] = useState<{ [key: string]: string }>(
{},
);
console.log("usersResponse", usersResponse);

if (!survey?.id) return null;

return (
Expand Down Expand Up @@ -76,7 +76,7 @@ const FeedBack = ({
<span
className={`text-lg ${
usersResponse[`$survey_response_${i}`] ===
feedback.text.toString()
feedback.number.toString()
? `text-[#287C34]`
: `text-black`
}`}
Expand All @@ -86,7 +86,7 @@ const FeedBack = ({
<span
className={
usersResponse[`$survey_response_${i}`] ===
feedback.text.toString()
feedback.number.toString()
? "opacity-100"
: "opacity-0"
}
Expand Down

0 comments on commit 4e023d5

Please sign in to comment.