Skip to content

Commit

Permalink
[FIX] no notion profile photo error (#97)
Browse files Browse the repository at this point in the history
* fix: no notion profile photo error (#91)

* chore: change profile image src path to const
  • Loading branch information
itjustbong authored Jan 31, 2023
1 parent 81966bc commit c0e18a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/Detail/components/PostDetail/PostHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PostHeader: React.FC<Props> = ({ data }) => {
<div className="flex items-center gap-2">
<Image
className="rounded-full"
src={data.author[0].profile_photo}
src={data.author[0].profile_photo || CONFIG.profile.image}
alt="profile_photo"
width={24}
height={24}
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type TPost = {
author?: {
id: string
name: string
profile_photo: string
profile_photo?: string
}[]
title: string
status: TPostStstus[]
Expand Down

1 comment on commit c0e18a9

@vercel
Copy link

@vercel vercel bot commented on c0e18a9 Jan 31, 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:

morethan-log – ./

morethan-log-git-main-morethanmin.vercel.app
morethan-log.vercel.app
morethan-log-morethanmin.vercel.app

Please sign in to comment.