Skip to content

Commit

Permalink
Dont show if no consent
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bendel authored and Chris Bendel committed Nov 6, 2023
1 parent 20c503c commit 9c938a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/screens/study-landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ interface StudyMessagingProps {

}

const Points: React.FC<StudyMessagingProps> = ({ study }) => {
if (!study.completedAt || study.abortedAt) return null
const Points: React.FC<StudyMessagingProps> = ({ consented, study }) => {
if (!study.completedAt || !consented) return null
return (
<div
css={{
Expand Down

0 comments on commit 9c938a0

Please sign in to comment.