Skip to content

Commit

Permalink
Merge pull request #72 from falsegenius1/fix/issue-70
Browse files Browse the repository at this point in the history
fix: update bio rendering
  • Loading branch information
Nishitbaria authored May 14, 2024
2 parents c2d20aa + 942a9e1 commit 6821032
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/_root/pages/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ const Profile = () => {
</div>

<p className="max-w-screen-sm text-center small-medium md:base-medium xl:text-left mt-7">
{currentUser.bio}
{currentUser.bio.split('\n').map((line: String, index: Number) => (
<>
{line}
{index !== currentUser.bio.split('\n').length - 1 && <br />} {/* Add <br> except for the last line */}
</>
))}
</p>
</div>

Expand Down

0 comments on commit 6821032

Please sign in to comment.