Skip to content

Commit

Permalink
Fix page following logic
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledEmaraDev committed Jan 16, 2021
1 parent edafdec commit 83d6018
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions frontend/src/components/PageHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,18 +404,16 @@ function PageHeader(props) {
</Button>
)}
</div>
{!isAFollower && (
<FormControlLabel
control={
<Checkbox
checked={isAFollower}
onChange={handleFollowToggle}
name="isAFollower"
/>
}
label={isAFollower ? "Following" : "Follow"}
/>
)}
<FormControlLabel
control={
<Checkbox
checked={isAFollower}
onChange={handleFollowToggle}
name="isAFollower"
/>
}
label={isAFollower ? "Following" : "Follow"}
/>
</div>
</div>
</Card>
Expand Down

0 comments on commit 83d6018

Please sign in to comment.