Skip to content

Commit a66f54b

Browse files
authored
Update profile.tsx
1 parent b017291 commit a66f54b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/routes/home/profile.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,14 @@ function ProfilePage() {
187187
const { data: publicUrlData } = supabase.storage
188188
.from('avatar')
189189
.getPublicUrl(data.path);
190-
190+
191191
if (!publicUrlData || !publicUrlData.publicUrl) {
192192
throw new Error('無法取得背景照公開網址');
193193
}
194-
194+
else{
195+
console.log(publicUrlData.publicUrl);
196+
}
197+
195198
const userController = new UserController();
196199
await userController.updateUser(profile.id, { profileBackground: publicUrlData.publicUrl });
197200
setShowBgModal(false);
@@ -456,4 +459,4 @@ function ProfilePage() {
456459
);
457460
}
458461

459-
export default ProfilePage;
462+
export default ProfilePage;

0 commit comments

Comments
 (0)