We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b017291 + 4fbf6d1 commit ffa5226Copy full SHA for ffa5226
src/routes/home/profile.tsx
@@ -187,11 +187,11 @@ function ProfilePage() {
187
const { data: publicUrlData } = supabase.storage
188
.from('avatar')
189
.getPublicUrl(data.path);
190
-
+
191
if (!publicUrlData || !publicUrlData.publicUrl) {
192
throw new Error('無法取得背景照公開網址');
193
}
194
195
const userController = new UserController();
196
await userController.updateUser(profile.id, { profileBackground: publicUrlData.publicUrl });
197
setShowBgModal(false);
@@ -456,4 +456,4 @@ function ProfilePage() {
456
);
457
458
459
-export default ProfilePage;
+export default ProfilePage;
0 commit comments