Skip to content

Commit

Permalink
Fix client side error.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed May 30, 2023
1 parent 741e1ac commit 83e059a
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/components/profilePage/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,26 @@ const Profile = ({ user, edit, experience, projects }: ProfileProps) => {
<div className="border-t-2 border-neutral-300 pt-5 dark:border-neutral-800">
<div className="mb-2 flex items-center justify-between">
<h3 className="text-xl font-medium">Sobre mi</h3>
{edit && <EditAboutMeProfile description={user.description!} />}
{edit && (
<EditAboutMeProfile description={user.description! || ""} />
)}
</div>
<p className="dark:text-neutral-400">
{edit ? (
user.description ? (
user.description
) : (
<Alert color="tip">
{user.description ? (
<p className="text-neutral-500 dark:text-neutral-400">
{user.description}
</p>
) : (
<Alert color="tip">
{edit ? (
<>
No tienes una descripción, puedes agregar una haciendo click
en el icono del lapiz.
</Alert>
)
) : user.description ? (
user.description
) : (
<Alert color="tip">Este usuario no tiene una descripción.</Alert>
)}
</p>
</>
) : (
<>No hay descripción.</>
)}
</Alert>
)}
</div>
<div className="border-t-2 border-neutral-300 pt-5 dark:border-neutral-800">
<div className="mb-4 flex items-center justify-between">
Expand Down

1 comment on commit 83e059a

@vercel
Copy link

@vercel vercel bot commented on 83e059a May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sendcv – ./

sendcv-pheralb.vercel.app
sendcv.vercel.app
sendcv-git-main-pheralb.vercel.app

Please sign in to comment.