Skip to content

Commit 39492c9

Browse files
committed
fix: feedback form visisibility
1 parent 45bb402 commit 39492c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/sections/feedbacks/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ export default function Feedback(): ReactElement {
3939
const dispatch = useDispatch();
4040
const route = useRouter();
4141

42-
const { feedbacks, isAuthenticated, submission, challenge } = useMultiSelector<unknown, FeedbackMultiSelector>({
42+
const { feedbacks, isAuthenticated, submission } = useMultiSelector<unknown, FeedbackMultiSelector>({
4343
feedbacks: (state: IRootState) => state.feedback.list,
4444
isAuthenticated: (state: IRootState) => authCheck(state),
4545
submission: (state: IRootState) => state.submissions.current,
46-
challenge: (state: IRootState) => state.challenges.current,
4746
});
4847

4948
const [isFetching, setIsFetching] = useState(false);
@@ -61,7 +60,7 @@ export default function Feedback(): ReactElement {
6160
return (
6261
<div className="relative">
6362
{isFetching ? <Loader loading={isFetching} /> : feedbacks.map((feedback, index) => <FeedbackCard key={feedback.id} value={feedback} last={index === feedbacks.length - 1} />)}
64-
{isAuthenticated && challenge?.feedbackInfo && (
63+
{isAuthenticated && (
6564
<Section>
6665
<Criteria />
6766
<Form onSave={fetchList} />

0 commit comments

Comments
 (0)