Skip to content

Commit

Permalink
fix console error on UserViewOrgProfile.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenparoni committed May 1, 2024
1 parent 751a977 commit 0a16dfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/imports/ui/pages/UserViewOrgProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const UserViewOrgProfile = () => {
<GoBackButton />
</Col>
<Col sm={12} md={11}>
<h1 className="text-center pb-2">{orgProfile.name}&apos; Profile</h1>
<h1 className="text-center pb-2">{orgProfile.name}&apos;s Profile</h1>
</Col>
</Row>
<Container className="my-3 rounded-4 color2">
Expand Down Expand Up @@ -85,11 +85,11 @@ const UserViewOrgProfile = () => {
</Card.Body>
<Card.Footer>
<Row>
<Col className="text-end">
<Col className="text-start">
{orgProfile.contactEmail ? (<ConnectButton org={orgProfile} />) : ''}
</Col>
<Col className="text-end">
{theUser._id !== orgProfile.leader ? (<Button variant="primary" href={`/review-organization/${_id}`}>Leave a review</Button>) : ''}
{theUser && theUser._id !== orgProfile.leader ? (<Button variant="primary" href={`/review-organization/${_id}`}>Leave a review</Button>) : ''}
</Col>
</Row>
</Card.Footer>
Expand Down

0 comments on commit 0a16dfa

Please sign in to comment.