Skip to content

Commit ffa5226

Browse files
authored
Merge pull request NCUAppTeam#181 from NCUAppTeam/main
fix: production publicUrl fetch problem
2 parents b017291 + 4fbf6d1 commit ffa5226

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/home/profile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ 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+
195195
const userController = new UserController();
196196
await userController.updateUser(profile.id, { profileBackground: publicUrlData.publicUrl });
197197
setShowBgModal(false);
@@ -456,4 +456,4 @@ function ProfilePage() {
456456
);
457457
}
458458

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

0 commit comments

Comments
 (0)