Merge pull request #29 from rkheftan/fix/profile

fix: dashboard api calls, multi profile fetch
This commit is contained in:
SajadMRjl
2025-08-21 14:52:41 +03:30
committed by GitHub
24 changed files with 656 additions and 679 deletions

View File

@@ -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,

View File

@@ -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;