fix: use avatar/banner URLs directly, not through posterUrl()
Some checks failed
CI / Check / Test (push) Failing after 11m13s

This commit is contained in:
2026-06-04 04:30:38 +02:00
parent fd9a053702
commit af8e58aeb8
2 changed files with 3 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ import { Label } from "@/components/ui/label"
import { Separator } from "@/components/ui/separator"
import { Textarea } from "@/components/ui/textarea"
import { Skeleton } from "@/components/ui/skeleton"
import { posterUrl } from "@/lib/api/client"
import { useProfile, useUpdateProfile, useUpdateProfileFields } from "@/hooks/use-users"
export const Route = createFileRoute("/_app/settings/edit-profile")({
@@ -93,8 +92,8 @@ function EditProfilePage() {
)
}
const currentAvatar = avatarPreview ?? posterUrl(data?.avatar_url)
const currentBanner = bannerPreview ?? posterUrl(data?.banner_url)
const currentAvatar = avatarPreview ?? data?.avatar_url
const currentBanner = bannerPreview ?? data?.banner_url
const saving = update.isPending || updateFields.isPending
return (