fix: dashboard api calls, multi profile fetch
This commit is contained in:
@@ -188,13 +188,13 @@ export function UserCompletionPage() {
|
||||
firstName,
|
||||
lastName,
|
||||
gender: sex || 0,
|
||||
nationalId,
|
||||
nationalCode: nationalId,
|
||||
savePassword: showPasswordSection,
|
||||
password: showPasswordSection ? password : undefined,
|
||||
saveEmail: showEmail,
|
||||
email: showEmail ? email : undefined,
|
||||
birthDate,
|
||||
country,
|
||||
countryCode: country,
|
||||
});
|
||||
|
||||
if (res) {
|
||||
@@ -351,6 +351,7 @@ export function UserCompletionPage() {
|
||||
if (Object.keys(touched).length > 0) {
|
||||
validateForm();
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [
|
||||
firstName,
|
||||
lastName,
|
||||
|
||||
@@ -18,9 +18,9 @@ export interface CompleteUserInfoPayload {
|
||||
lastName: string;
|
||||
// TODO: fix this
|
||||
gender: 0 | 1 | 2;
|
||||
nationalId: string;
|
||||
nationalCode: string;
|
||||
birthDate: Date | null;
|
||||
country: string;
|
||||
countryCode: string;
|
||||
savePassword?: boolean;
|
||||
password?: string;
|
||||
saveEmail?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user