Skip to content

Commit 005743d

Browse files
committed
chore: fix pictique visual issues
1 parent 5c983f4 commit 005743d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

platforms/pictique/src/lib/fragments/Profile/Profile.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<li class="mb-6 list-none">
6363
<Post
6464
avatar={profileData.avatarUrl || 'https://picsum.photos/200/200'}
65-
username={profileData?.username}
65+
username={profileData?.name ?? profileData?.username}
6666
imgUris={post.imgUris ?? []}
6767
text={post.caption}
6868
time={post.time ? new Date(post.time).toLocaleDateString() : ''}

platforms/pictique/src/routes/(protected)/home/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
<li class="mb-6">
7878
<Post
7979
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}
8282
imgUris={post.images}
8383
text={post.text}
8484
time={new Date(post.createdAt).toLocaleDateString()}
@@ -102,7 +102,7 @@
102102
},
103103
menu: () => alert('menu')
104104
}}
105-
options = {[{name: "Report",handler: () => alert("asd")}]}
105+
options={[{ name: 'Report', handler: () => alert('asd') }]}
106106
/>
107107
</li>
108108
{/each}

0 commit comments

Comments
 (0)