MED-151: add profile view and working smoking dashboard card (#71)
* MED-151: add profile view and working smoking dashboard card * update zod * move some components to shared * move some components to shared * remove console.logs * remove unused password form components * only check null for variant * use pathsconfig
This commit is contained in:
@@ -410,7 +410,7 @@ export async function getAnalysisResultsForDoctor(
|
||||
.from('accounts')
|
||||
.select(
|
||||
`primary_owner_user_id, id, name, last_name, personal_code, phone, email, preferred_locale,
|
||||
account_params(height,weight)`,
|
||||
accountParams:account_params(height,weight)`,
|
||||
)
|
||||
.eq('is_personal_account', true)
|
||||
.eq('primary_owner_user_id', userId)
|
||||
@@ -472,7 +472,7 @@ export async function getAnalysisResultsForDoctor(
|
||||
last_name,
|
||||
personal_code,
|
||||
phone,
|
||||
account_params,
|
||||
accountParams,
|
||||
preferred_locale,
|
||||
} = accountWithParams[0];
|
||||
|
||||
@@ -513,8 +513,8 @@ export async function getAnalysisResultsForDoctor(
|
||||
personalCode: personal_code,
|
||||
phone,
|
||||
email,
|
||||
height: account_params?.[0]?.height,
|
||||
weight: account_params?.[0]?.weight,
|
||||
height: accountParams?.height,
|
||||
weight: accountParams?.weight,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user