File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 62
62
<li class =" mb-6 list-none" >
63
63
<Post
64
64
avatar ={profileData .avatarUrl || ' https://picsum.photos/200/200' }
65
- username ={profileData ?.username }
65
+ username ={profileData ?.name ?? profileData ?. username }
66
66
imgUris ={post .imgUris ?? []}
67
67
text ={post .caption }
68
68
time ={post .time ? new Date (post .time ).toLocaleDateString () : ' ' }
Original file line number Diff line number Diff line change 77
77
<li class =" mb-6" >
78
78
<Post
79
79
avatar ={post .author .avatarUrl }
80
- username ={post .author .handle }
81
- userId = {post .author .id }
80
+ username ={post .author .name ?? post . author . handle }
81
+ userId = {post .author .id }
82
82
imgUris ={post .images }
83
83
text ={post .text }
84
84
time ={new Date (post .createdAt ).toLocaleDateString ()}
102
102
},
103
103
menu : () => alert (' menu' )
104
104
}}
105
- options = {[{name: " Report" , handler: () => alert(" asd") }]}
105
+ options = {[{ name: ' Report' , handler : () => alert (' asd' ) }]}
106
106
/>
107
107
</li >
108
108
{/each }
You can’t perform that action at this time.
0 commit comments