fix: profile issues

This commit is contained in:
swve 2025-04-01 22:10:18 +02:00
parent b3ef0eb10b
commit fe38020f02
5 changed files with 74 additions and 26 deletions

View file

@ -164,7 +164,7 @@ const UserProfileBuilder = () => {
if (session?.data?.user?.id && access_token) {
try {
setIsLoading(true)
const userData = await getUser(session.data.user.id, access_token)
const userData = await getUser(session.data.user.id)
if (userData.profile) {
try {
@ -291,7 +291,7 @@ const UserProfileBuilder = () => {
try {
// Get fresh user data before update
const userData = await getUser(session.data.user.id, access_token)
const userData = await getUser(session.data.user.id)
// Update only the profile field
userData.profile = profileData