mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: profile issues
This commit is contained in:
parent
b3ef0eb10b
commit
fe38020f02
5 changed files with 74 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue